Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

scsi: smartpqi: Fix a typo in func pqi_aio_submit_io()

Use correct pqi_aio_path_request structure to calculate the offset to
sg_descriptors.

The function pqi_aio_submit_io() uses the pqi_raid_path_request structure
to calculate the offset of the structure member sg_descriptors. This is
incorrect. It should be using the pqi_aio_path_request structure instead.

This typo is benign because the offsets are the same in both structures.

Link: https://lore.kernel.org/r/164375210321.440833.2566086558909686629.stgit@brunhilda.pdev.net
Reviewed-by: Mike McGowen <mike.mcgowen@microchip.com>
Reviewed-by: Scott Teel <scott.teel@microchip.com>
Signed-off-by: Kevin Barnett <kevin.barnett@microchip.com>
Signed-off-by: Don Brace <don.brace@microchip.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Kevin Barnett and committed by
Martin K. Petersen
9e98e60b b4dc06a9

+1 -1
+1 -1
drivers/scsi/smartpqi/smartpqi_init.c
··· 5641 5641 io_request->raid_bypass = raid_bypass; 5642 5642 5643 5643 request = io_request->iu; 5644 - memset(request, 0, offsetof(struct pqi_raid_path_request, sg_descriptors)); 5644 + memset(request, 0, offsetof(struct pqi_aio_path_request, sg_descriptors)); 5645 5645 5646 5646 request->header.iu_type = PQI_REQUEST_IU_AIO_PATH_IO; 5647 5647 put_unaligned_le32(aio_handle, &request->nexus_id);