[SCSI] mptfusion: corrected if condition check for SCSIIO and PASSTHROUGH commands
Modified the function type check to verify it is not MPI_FUNCTION_RAID_SCSI_IO_PASSTHROUGH or MPI_FUNCTION_SCSI_IO_REQUEST. Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
parent
64e155adc2
commit
de81562f2f
1 changed files with 2 additions and 2 deletions
|
@ -360,8 +360,8 @@ static int mptctl_bus_reset(MPT_ADAPTER *ioc, u8 function)
|
||||||
u16 iocstatus;
|
u16 iocstatus;
|
||||||
|
|
||||||
/* bus reset is only good for SCSI IO, RAID PASSTHRU */
|
/* bus reset is only good for SCSI IO, RAID PASSTHRU */
|
||||||
if (!(function == MPI_FUNCTION_RAID_SCSI_IO_PASSTHROUGH) ||
|
if (!(function == MPI_FUNCTION_RAID_SCSI_IO_PASSTHROUGH ||
|
||||||
(function == MPI_FUNCTION_SCSI_IO_REQUEST)) {
|
function == MPI_FUNCTION_SCSI_IO_REQUEST)) {
|
||||||
dtmprintk(ioc, printk(MYIOC_s_WARN_FMT
|
dtmprintk(ioc, printk(MYIOC_s_WARN_FMT
|
||||||
"TaskMgmt, not SCSI_IO!!\n", ioc->name));
|
"TaskMgmt, not SCSI_IO!!\n", ioc->name));
|
||||||
return -EPERM;
|
return -EPERM;
|
||||||
|
|
Loading…
Reference in a new issue