From: Stefan Richter Date: Thu, 22 Jul 2010 09:56:38 +0000 (+0200) Subject: firewire: nosy: fix list corruption by NOSY_IOC_STOP X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=a2d39db9dec0e7e403f54c9cf98b7dbc82b4c44a;p=openwrt%2Fstaging%2Fblogic.git 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 --- diff --git a/drivers/firewire/nosy.c b/drivers/firewire/nosy.c index 6470514190d5..637e51485a70 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); }