net: microchip: encx24j600: add missed kthread_stop
authorChuhong Yuan <hslester96@gmail.com>
Thu, 7 May 2020 15:13:20 +0000 (23:13 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 May 2020 01:08:47 +0000 (18:08 -0700)
commitff8ce319e9c25e920d994cc35236f0bb32dfc8f3
treef0f5d0cebb9aa7f80e857179a3e06204e76a0e95
parent09454fd0a4ce23cb3d8af65066c91a1bf27120dd
net: microchip: encx24j600: add missed kthread_stop

This driver calls kthread_run() in probe, but forgets to call
kthread_stop() in probe failure and remove.
Add the missed kthread_stop() to fix it.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/encx24j600.c