firewire: nosy: fix list corruption by NOSY_IOC_STOP
nosy_stop_snoop() would blow up the second time it was called without
nosy_start_snoop() in between.
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
diff --git a/drivers/firewire/nosy.c b/drivers/firewire/nosy.c
index 6470514..637e514 100644
--- a/drivers/firewire/nosy.c
+++ b/drivers/firewire/nosy.c
@@ -276,7 +276,7 @@
unsigned long flags;
spin_lock_irqsave(&client->lynx->client_list_lock, flags);
- list_del(&client->link);
+ list_del_init(&client->link);
spin_unlock_irqrestore(&client->lynx->client_list_lock, flags);
}