Re: [PATCH v2] net: alx: fix race condition in alx_remove

2020-06-15 Thread David Miller
From: Zekun Shen Date: Mon, 15 Jun 2020 11:50:29 -0400 > There is a race condition exist during termination. The path is > alx_stop and then alx_remove. An alx_schedule_link_check could be called > before alx_stop by interrupt handler and invoke alx_link_check later. > Alx_stop frees the napis, a

[PATCH v2] net: alx: fix race condition in alx_remove

2020-06-15 Thread Zekun Shen
There is a race condition exist during termination. The path is alx_stop and then alx_remove. An alx_schedule_link_check could be called before alx_stop by interrupt handler and invoke alx_link_check later. Alx_stop frees the napis, and alx_remove cancels any pending works. If any of the work is sc