summaryrefslogtreecommitdiff
path: root/arch/sandbox/dts
diff options
context:
space:
mode:
authorJean-Jacques Hiblot <jjhiblot@ti.com>2017-04-07 11:42:08 (GMT)
committerSimon Glass <sjg@chromium.org>2017-04-15 01:38:57 (GMT)
commit4e27b9a5845e9c061b315b7ca301eff982d6898f (patch)
tree787b5d8751c4b3ec557672177760383e6bb11646 /arch/sandbox/dts
parent1330a726ff0c8164cf6035ab4a6d1e31805f69d1 (diff)
downloadu-boot-fsl-qoriq-4e27b9a5845e9c061b315b7ca301eff982d6898f.tar.xz
dm: scsi: fix divide-by-0 error in scsi_scan()
With DM_SCSI enabled, blk_create_devicef() is called with blkz = 0, leading to a divide-by-0 exception. scsi_detect_dev() can be used to get the required parameters (block size and number of blocks) from the drive before calling blk_create_devicef(). Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox/dts')
0 files changed, 0 insertions, 0 deletions