diff options
author | Michael Chan <mchan@broadcom.com> | 2011-07-13 17:24:20 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-07-14 08:46:07 -0700 |
commit | 558e4c758c4c7bf209325f5865189c6558860b2b (patch) | |
tree | bdbdabda57958f06f56657ddbf6eeddb4975d187 /drivers/net/cnic.c | |
parent | e1dd883cb15310dc2ded9995a1f1d8b1cb1e88f3 (diff) | |
download | op-kernel-dev-558e4c758c4c7bf209325f5865189c6558860b2b.zip op-kernel-dev-558e4c758c4c7bf209325f5865189c6558860b2b.tar.gz |
cnic: Return proper error code if we fail to send netlink message
to allow iSCSI connection to fail faster instead of waiting for the
long timeout.
Update version to 2.5.6.
Signed-off-by: Michael Chan <mchan@broadcom.com>
Reviewed-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/cnic.c')
-rw-r--r-- | drivers/net/cnic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/cnic.c b/drivers/net/cnic.c index bdfe155..ea75f65 100644 --- a/drivers/net/cnic.c +++ b/drivers/net/cnic.c @@ -328,7 +328,7 @@ static int cnic_send_nlmsg(struct cnic_local *cp, u32 type, msleep(100); retry++; } - return 0; + return rc; } static void cnic_cm_upcall(struct cnic_local *, struct cnic_sock *, u8); |