Skip to content

Commit

Permalink
pcmcia/vrc4171: Add missing spinlock init
Browse files Browse the repository at this point in the history
It doesn't seem this spinlock was properly initialized. This bug was
introduced by commit 7a410e8.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Jean Delvare authored and Greg Kroah-Hartman committed Jan 17, 2013
1 parent 36c286d commit 811af97
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/pcmcia/vrc4171_card.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ static int pccard_init(struct pcmcia_socket *sock)
socket = &vrc4171_sockets[slot];
socket->csc_irq = search_nonuse_irq();
socket->io_irq = search_nonuse_irq();
spin_lock_init(&socket->lock);

return 0;
}
Expand Down

0 comments on commit 811af97

Please sign in to comment.