mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 22:28:00 +00:00
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>
This commit is contained in:
parent
c7b2a99c66
commit
a2d39db9de
1 changed files with 1 additions and 1 deletions
|
@ -276,7 +276,7 @@ nosy_stop_snoop(struct client *client)
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
||||||
spin_lock_irqsave(&client->lynx->client_list_lock, 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);
|
spin_unlock_irqrestore(&client->lynx->client_list_lock, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue