diff options
author | Volodymyr G Lukiianyk <volodymyrgl@gmail.com> | 2008-04-29 12:17:42 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-04-29 12:17:42 +0200 |
commit | 43af8532ecd74a61f9e7aeb27c026c1ee27915ca (patch) | |
tree | b7a012195373a4ac2d43f949199199bab7e5e30d /net/bridge/br.c | |
parent | netfilter: {nfnetlink,ip,ip6}_queue: fix skb_over_panic when enlarging packets (diff) | |
download | linux-43af8532ecd74a61f9e7aeb27c026c1ee27915ca.tar.xz linux-43af8532ecd74a61f9e7aeb27c026c1ee27915ca.zip |
bridge: fix error handling in br_add_if()
When device is added to bridge its refcnt is incremented (in new_nbp()), but if
error occurs during further br_add_if() operations this counter is not
decremented back. Fix it by adding dev_put() call in the error path.
Signed-off-by: Volodymyr G Lukiianyk <volodymyrgl@gmail.com>
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br.c')
0 files changed, 0 insertions, 0 deletions