]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite6915e83748a8499e775927792896404285f1bf2
tree17a2848c3deac1ad7efd24bfae43fb019f35cd19
parent3a82033ccee5db7c8adc8ec5a44c1e364330cb70
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