Skip to content

Commit

Permalink
firewire: nosy: fix list corruption by NOSY_IOC_STOP
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stefan Richter committed Jul 27, 2010
1 parent c7b2a99 commit a2d39db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/firewire/nosy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit a2d39db

Please sign in to comment.