bonding: disallow enslaving a bond to itself
authorJiri Bohac <jbohac@suse.cz>
Wed, 26 Feb 2014 17:20:13 +0000 (18:20 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Feb 2014 03:37:12 +0000 (22:37 -0500)
commit09a89c219baf0f116387efc928e325cf23630f20
tree1f519bad2ed29d173f443dbad899b93731118324
parentee6154e11eeccd4ae32c4881415dbd902a869592
bonding: disallow enslaving a bond to itself

Enslaving a bond to itself leads to an endless loop and hangs the kernel.

Signed-off-by: Jiri Bohac <jbohac@suse.cz>
Tested-by: Ding Tianhong <dingtianhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c