]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mptfusion: Fix Incorrect return value in mptscsih_dev_reset
authorKashyap, Desai <kashyap.desai@lsi.com>
Thu, 10 Feb 2011 06:23:44 +0000 (11:53 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 2 Mar 2011 14:46:33 +0000 (09:46 -0500)
commitbcb8164ba1b789f70d638ebcfaa963318dbcc66f
treefeeb0bc053a04332e500d6528324b4887604dfa9
parent6140386a57b31bf7bc7e41ca4c4abddabf90b1b8
mptfusion: Fix Incorrect return value in mptscsih_dev_reset

commit bcfe42e98047f1935c5571c8ea77beb2d43ec19d upstream.

There's a branch at the end of this function that
is supposed to normalize the return value with what
the mid-layer expects. In this one case, we get it wrong.

Also increase the verbosity of the INFO level printk
at the end of mptscsih_abort to include the actual return value
and the scmd->serial_number. The reason being success
or failure is actually determined by the state of
the internal tag list when a TMF is issued, and not the
return value of the TMF cmd. The serial_number is also
used in this decision, thus it's useful to know for debugging
purposes.

Reported-by: Peter M. Petrakis <peter.petrakis@canonical.com>
Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/message/fusion/mptscsih.c