From: Lorenzo Bianconi <[email protected]>
Date: Mon, 26 Nov 2018 15:07:16 +0100
> Fix a possible NULL pointer dereference in nic_remove routine
> removing the nicpf module if nic_probe fails.
> The issue can be triggered with the following reproducer:
>
> $rmmod nicvf
> $rmmod nicpf
>
> [ 521.412008] Unable to handle kernel access to user memory outside uaccess
> routines at virtual address 0000000000000014
...
> Fixes: 4863dea3fab0 ("net: Adding support for Cavium ThunderX network
> controller")
> Signed-off-by: Lorenzo Bianconi <[email protected]>
Applied.