提交 811af972 编写于 作者: J Jean Delvare 提交者: Greg Kroah-Hartman

pcmcia/vrc4171: Add missing spinlock init

It doesn't seem this spinlock was properly initialized. This bug was
introduced by commit 7a410e8d.
Signed-off-by: NJean Delvare <khali@linux-fr.org>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 36c286d5
...@@ -246,6 +246,7 @@ static int pccard_init(struct pcmcia_socket *sock) ...@@ -246,6 +246,7 @@ static int pccard_init(struct pcmcia_socket *sock)
socket = &vrc4171_sockets[slot]; socket = &vrc4171_sockets[slot];
socket->csc_irq = search_nonuse_irq(); socket->csc_irq = search_nonuse_irq();
socket->io_irq = search_nonuse_irq(); socket->io_irq = search_nonuse_irq();
spin_lock_init(&socket->lock);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册