]> git.baikalelectronics.ru Git - kernel.git/commit
libfc: Avoid that sending after an abort triggers a kernel warning
authorBart Van Assche <bvanassche@acm.org>
Wed, 14 Aug 2013 15:37:52 +0000 (15:37 +0000)
committerRobert Love <robert.w.love@intel.com>
Wed, 4 Sep 2013 20:30:43 +0000 (13:30 -0700)
commit3e4cc40ab57573bae664b81ec237595b1a2c3271
tree257c25995a259307113f337cc8f569f2604b9363
parentf908089a4e4e761800e90645443ba67fd5694fec
libfc: Avoid that sending after an abort triggers a kernel warning

Calling fc_seq_send() after an ABTS message has been received triggers
a kernel warning (WARN_ON(!(ep->esb_stat & ESB_ST_SEQ_INIT))). Avoid
this by returning -ENXIO to the caller if fc_seq_send() is invoked after
an ABTS message has been received.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Cc: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
drivers/scsi/libfc/fc_exch.c