From: nikolay@redhat.com Date: Thu, 18 Apr 2013 07:33:36 +0000 (+0000) Subject: bonding: primary_slave & curr_active_slave are not cleaned on enslave failure X-Git-Tag: v3.9-rc8~7^2~7^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c5913b53fefc9d9e15a2d0f93042766658d9f3f;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed