]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] bonding: fix a locking bug in bond_release
authorJay Vosburgh <fubar@us.ibm.com>
Wed, 8 Feb 2006 05:17:22 +0000 (21:17 -0800)
committerJeff Garzik <jgarzik@pobox.com>
Fri, 17 Feb 2006 21:16:39 +0000 (16:16 -0500)
commitf5e2a7b22e7d7dfda8794906d0fddeaaa09bb944
tree4df9bb7fd503f2a409cd4ef9d94cddcc2a1db6d0
parent66cc5d5aee1ea427b3aeacdabd006a4195c81eee
[PATCH] bonding: fix a locking bug in bond_release

bond_release returns EINVAL without releasing the bond lock if the
slave device is not being bonded by the bond.  The following patch
ensures that the lock is released in this case.

Signed-off-by: Stephen J. Bevan <stephen@dino.dnsalias.com>
Acked-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/bonding/bond_main.c