diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2010-07-22 11:56:38 +0200 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2010-07-27 11:04:10 +0200 |
commit | a2d39db9dec0e7e403f54c9cf98b7dbc82b4c44a (patch) | |
tree | 86e4e8447f83cefa4ae4809051fffad04b8229ef /drivers/firewire/nosy.c | |
parent | c7b2a99c66e7b40d8843a70f2981e375eeedf062 (diff) | |
download | kernel_samsung_smdk4412-a2d39db9dec0e7e403f54c9cf98b7dbc82b4c44a.zip kernel_samsung_smdk4412-a2d39db9dec0e7e403f54c9cf98b7dbc82b4c44a.tar.gz kernel_samsung_smdk4412-a2d39db9dec0e7e403f54c9cf98b7dbc82b4c44a.tar.bz2 |
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>
Diffstat (limited to 'drivers/firewire/nosy.c')
-rw-r--r-- | drivers/firewire/nosy.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ nosy_stop_snoop(struct client *client) 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); } |