summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_ioctl.c
diff options
context:
space:
mode:
authorChristoph Hellwig2014-10-01 20:31:01 +0200
committerChristoph Hellwig2014-11-12 11:15:54 +0100
commit678e27573237a0b065defdf99e5070c9b0c403c3 (patch)
treef680a5244c9d1e1b63eeb4adf57c57c05a115636 /drivers/scsi/scsi_ioctl.c
parentscsi: resolve some missing-field-initializers warnings (diff)
downloadkernel-qcow2-linux-678e27573237a0b065defdf99e5070c9b0c403c3.tar.gz
kernel-qcow2-linux-678e27573237a0b065defdf99e5070c9b0c403c3.tar.xz
kernel-qcow2-linux-678e27573237a0b065defdf99e5070c9b0c403c3.zip
scsi: PC partition tables are little endian
As sparse correctly pointed out, scsi_partsize should use get_unaligned_le32 to read PC partition tables from disk, as they are little endian. The result of this bug is that we returned incorrect geometries on big endian systems when using the scsicam variant. Which probably doesn't matter as only old x86 systems every cared about the geometry. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Reviewed-by: Hannes Reinecke <hare@suse.de>
Diffstat (limited to 'drivers/scsi/scsi_ioctl.c')
0 files changed, 0 insertions, 0 deletions