diff mbox series

[1/1] scsi: cxlflash: Fix compile error due to incorrect scsi_execute_cmd use

Message ID 20230116211635.104999-1-michael.christie@oracle.com
State New
Headers show
Series [1/1] scsi: cxlflash: Fix compile error due to incorrect scsi_execute_cmd use | expand

Commit Message

Mike Christie Jan. 16, 2023, 9:16 p.m. UTC
scsi_execute_cmd takes a pointer to the scsi_exec_args struct. This fixes
a compile error in cxlflash due to the driver passing in the
scsi_exec_args struct.

Signed-off-by: Mike Christie <michael.christie@oracle.com>
---
 drivers/scsi/cxlflash/superpipe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/scsi/cxlflash/superpipe.c b/drivers/scsi/cxlflash/superpipe.c
index 9935c47712dc..22cfc2e1dfb9 100644
--- a/drivers/scsi/cxlflash/superpipe.c
+++ b/drivers/scsi/cxlflash/superpipe.c
@@ -361,7 +361,7 @@  static int read_cap16(struct scsi_device *sdev, struct llun_info *lli)
 	/* Drop the ioctl read semahpore across lengthy call */
 	up_read(&cfg->ioctl_rwsem);
 	result = scsi_execute_cmd(sdev, scsi_cmd, REQ_OP_DRV_IN, cmd_buf,
-				  CMD_BUFSIZE, to, CMD_RETRIES, exec_args);
+				  CMD_BUFSIZE, to, CMD_RETRIES, &exec_args);
 	down_read(&cfg->ioctl_rwsem);
 	rc = check_state(cfg);
 	if (rc) {