]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tcm_fc: Check for aborted sequence
authorMark Rustad <mark.d.rustad@intel.com>
Mon, 22 Apr 2013 16:49:55 +0000 (09:49 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 25 Apr 2013 08:05:28 +0000 (01:05 -0700)
commitd3682b1aeba088957a210e3abc2c71dba63d6def
tree49e8ceedd508668cdcf351fd411d4ec4168a2781
parent72438cddd6d39b293dbc37836a4d3e691d26c356
tcm_fc: Check for aborted sequence

Add a check for an aborted sequence, which has a
NULL sequence pointer, to avoid target crashes.
The most relevant messages from the crash (entered
from video capture) include:

BUG: unable to handle kernel paging request at ffffffffffffffdf
IP: [<ffffffffa02d514c>] fc_seq_send+0x3c/0x150 [libfc]
...
Call Trace:
 [<ffffffffa0443de6>] ft_queue_data_in+0x266/0x560 [tcm_fc]

Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/tcm_fc/tfc_io.c