diff options
author | Jean-Jacques Hiblot <jjhiblot@ti.com> | 2017-04-07 13:42:08 +0200 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-04-14 19:38:57 -0600 |
commit | 4e27b9a5845e9c061b315b7ca301eff982d6898f (patch) | |
tree | 787b5d8751c4b3ec557672177760383e6bb11646 /arch/x86/include | |
parent | 1330a726ff0c8164cf6035ab4a6d1e31805f69d1 (diff) |
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/x86/include')
0 files changed, 0 insertions, 0 deletions