Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit de81562f authored by Kashyap, Desai's avatar Kashyap, Desai Committed by James Bottomley
Browse files

[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: default avatarKashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent 64e155ad
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -360,8 +360,8 @@ static int mptctl_bus_reset(MPT_ADAPTER *ioc, u8 function)
	u16		 iocstatus;

	/* bus reset is only good for SCSI IO, RAID PASSTHRU */
	if (!(function == MPI_FUNCTION_RAID_SCSI_IO_PASSTHROUGH) ||
	    (function == MPI_FUNCTION_SCSI_IO_REQUEST)) {
	if (!(function == MPI_FUNCTION_RAID_SCSI_IO_PASSTHROUGH ||
		function == MPI_FUNCTION_SCSI_IO_REQUEST)) {
		dtmprintk(ioc, printk(MYIOC_s_WARN_FMT
			"TaskMgmt, not SCSI_IO!!\n", ioc->name));
		return -EPERM;