qca_spi: Add check for kthread_stop
authorStefan Wahren <wahrenst@gmx.net>
Sun, 28 Jan 2024 20:10:45 +0000 (21:10 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Jan 2024 13:38:50 +0000 (13:38 +0000)
commitc494a01abe01fcfcbbcd849023ce06a573963aed
treedb5caca34ea4f959947b58836ea9b0535bd9d27f
parente746094b1bb09efa2eaacf5e945f78a0e09c9c35
qca_spi: Add check for kthread_stop

We better not rely on that spi_thread points to a running
thread. So add an check for this.

Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/qca_spi.c