提交 a2d39db9 编写于 作者: S Stefan Richter

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: NStefan Richter <stefanr@s5r6.in-berlin.de>
上级 c7b2a99c
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册