diff options
author | nikolay@redhat.com <nikolay@redhat.com> | 2013-04-18 09:33:36 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-19 23:48:19 +0200 |
commit | 3c5913b53fefc9d9e15a2d0f93042766658d9f3f (patch) | |
tree | 772296984f4e7f56b8cc0aa4949cfee3582ddc8b /drivers/connector | |
parent | bonding: vlans don't get deleted on enslave failure (diff) | |
download | linux-3c5913b53fefc9d9e15a2d0f93042766658d9f3f.tar.xz linux-3c5913b53fefc9d9e15a2d0f93042766658d9f3f.zip |
bonding: primary_slave & curr_active_slave are not cleaned on enslave failure
On enslave failure primary_slave can point to new_slave which is to be
freed, and the same applies to curr_active_slave. So check if this is
the case and clean up properly after err_detach because that's the first
error code path after they're set.
Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/connector')
0 files changed, 0 insertions, 0 deletions