]> rtime.felk.cvut.cz Git - socketcan-devel.git/commit
This patch fixes a return with held lock problem in the
authorbet-frogger <bet-frogger@030b6a49-0b11-0410-94ab-b0dab22257f2>
Sun, 11 Jun 2006 16:56:36 +0000 (16:56 +0000)
committerbet-frogger <bet-frogger@030b6a49-0b11-0410-94ab-b0dab22257f2>
Sun, 11 Jun 2006 16:56:36 +0000 (16:56 +0000)
commit88bc92990630c6c33d1db1de6338fbafc9bbbb30
tree9032fbc27e0f86d85744a80e7d54e2357b2835c4
parent2f4bb9a7238252079b92168bd37267b2a0532a91
This patch fixes a return with held lock problem in the
can_rx_register() function.

If the malloc fails, the function was left without giving back the
lock, the patch gotos to out (where the lock is dropped) instead of
returning.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
git-svn-id: svn://svn.berlios.de//socketcan/trunk@27 030b6a49-0b11-0410-94ab-b0dab22257f2
kernel/2.6/net/can/af_can.c