]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] scsi_debug: fix endianness bug in sdebug_build_parts()
authorAkinobu Mita <akinobu.mita@gmail.com>
Mon, 26 Aug 2013 13:08:40 +0000 (22:08 +0900)
committerJames Bottomley <JBottomley@Parallels.com>
Tue, 3 Sep 2013 14:28:08 +0000 (07:28 -0700)
commit09731ddcfa4aa098bb0a259cb446093820aac22a
tree296daa77f647b056d3227c5909cbc4d179671292
parent59ef584ae5124e94900c50c03074b32cc00838fa
[SCSI] scsi_debug: fix endianness bug in sdebug_build_parts()

With module parameter num_parts > 0, partition table is built on the
ramdisk storage when loading the driver.  Unfortunately, there is an
endianness bug in sdebug_build_parts().  So the partition table is not
correctly initialized on big-endian systems.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Tested-by: Martin Peschke <mpeschke@linux.vnet.ibm.com>
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/scsi_debug.c