]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: bond_open error return value
authorstephen hemminger <shemminger@vyatta.com>
Mon, 25 Jan 2010 23:34:15 +0000 (23:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Jan 2010 13:55:54 +0000 (05:55 -0800)
commiteb3318c73b6b885a17827a10477db0eaaa2c9831
treef60ad1068ba160e2628a915aa073ced46872f966
parent3a67010c86d06db16d1476f7b7e0a5c10a30091b
bonding: bond_open error return value

The convention for API functions in kernel is to return errno value;
bond_open would return -1 if alb setup failed. The only reason that
could happen is if kmalloc() failed.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c