Volodymyr G. Lukiianyk
2008-Mar-18 19:39 UTC
[Bridge] [PATCH] 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 at gmail.com> -------------- next part -------------- A non-text attachment was scrubbed... Name: br_add_if_put_dev.diff Type: text/x-patch Size: 339 bytes Desc: not available Url : http://lists.linux-foundation.org/pipermail/bridge/attachments/20080318/d1dbb270/attachment.bin