bonding: fix error check in sysfs creation
commit09c892797688312dc8a3c4d8b37dcb7207c1d48a
authorJay Vosburgh <fubar@us.ibm.com>
Sat, 20 Jan 2007 02:15:38 +0000 (19 18:15 -0800)
committerJeff Garzik <jeff@garzik.org>
Mon, 5 Feb 2007 21:58:47 +0000 (5 16:58 -0500)
treeadf75f427842fdb6d112fb246133a7925b659165
parente4b91c484611da385e34ff0f8bb2744ae2c735b7
bonding: fix error check in sysfs creation

The existing code did not correctly handle failures to create
the per-interface sysfs group for bonding.

Modified code to notice errors, and correctly unwind.

Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/bonding/bond_main.c