orgads / rpms / kernel

Forked from rpms/kernel 4 years ago
Clone
e293be
centosplus kernel patch [bug#15801]
e293be
e293be
--- linux-3.10.0-957.1.3.el7.x86_64.orig/drivers/scsi/smartpqi/smartpqi_init.c	2018-11-15 12:07:13.000000000 -0500
e293be
+++ linux-3.10.0-957.1.3.el7.x86_64/drivers/scsi/smartpqi/smartpqi_init.c	2019-01-16 15:07:02.389347324 -0500
e293be
@@ -2712,6 +2712,9 @@ static unsigned int pqi_process_io_intr(
e293be
 		switch (response->header.iu_type) {
e293be
 		case PQI_RESPONSE_IU_RAID_PATH_IO_SUCCESS:
e293be
 		case PQI_RESPONSE_IU_AIO_PATH_IO_SUCCESS:
e293be
+			if (io_request->scmd)
e293be
+				io_request->scmd->result = 0;
e293be
+			/* fall through */
e293be
 		case PQI_RESPONSE_IU_GENERAL_MANAGEMENT:
e293be
 			break;
e293be
 		case PQI_RESPONSE_IU_TASK_MANAGEMENT: