]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
cnic: Fix cnic_cm_abort() error handling.
authorMichael Chan <mchan@broadcom.com>
Tue, 15 Jun 2010 08:57:03 +0000 (08:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Jun 2010 21:23:37 +0000 (14:23 -0700)
commit7b34a4644b4342896e0c1967b8f953213ea4a990
treee25d3d267b4ab1d82ace8256b47f6d42dc9d6559
parent943189f1d564e69201f7d71e77f5608a701e3e55
cnic: Fix cnic_cm_abort() error handling.

Fix the code that handles the error case when cnic_cm_abort() cannot
proceed normally.  We cannot just set the csk->state and we must
go through cnic_ready_to_close() to handle all the conditions.  We
also add error return code in cnic_cm_abort().

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: Eddie Wai <waie@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cnic.c