]> rtime.felk.cvut.cz Git - socketcan-devel.git/commit
This patch fixes the error handling in raw_sendmsg().
authorbet-frogger <bet-frogger@030b6a49-0b11-0410-94ab-b0dab22257f2>
Sun, 11 Jun 2006 16:57:58 +0000 (16:57 +0000)
committerbet-frogger <bet-frogger@030b6a49-0b11-0410-94ab-b0dab22257f2>
Sun, 11 Jun 2006 16:57:58 +0000 (16:57 +0000)
commitd174e50f28db8d3107f3a684f0d465a336d9db0f
tree56a5ada371722c6a928205dae7c9d26a2957636b
parent5c6e68592ed163aec5a3db6df4f37433b7d8a400
This patch fixes the error handling in raw_sendmsg().

If the memcpy_fromiovec() fails the device refcount was not decreased
by a dev_put() call. This patch adds the missing dev_put().

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