rose: device refcount leak
authorEric Dumazet <eric.dumazet@gmail.com>
Fri, 6 Nov 2009 04:56:07 +0000 (20:56 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Nov 2009 04:56:07 +0000 (20:56 -0800)
commitb4ec824021493ba6cb7eeb61572f4d2f8a80a52e
tree17a2848c3deac1ad7efd24bfae43fb019f35cd19
parent1056bd51674e529813213186471bb4ac6689a755
rose: device refcount leak

While hunting dev_put() for net-next-2.6, I found a device refcount
leak in ROSE, ioctl(SIOCADDRT) error path.

Fix is to not touch device refcount, as we hold RTNL

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rose/rose_route.c