From: Tom Rini Date: Sat, 8 Apr 2017 21:13:58 -0400 Subject: [U-Boot] [PATCH v2 09/10] dm: scsi: fix divide-by-0 error in scsi_scan() In-Reply-To: <1491565329-20267-10-git-send-email-jjhiblot@ti.com> References: <1491565329-20267-1-git-send-email-jjhiblot@ti.com> <1491565329-20267-10-git-send-email-jjhiblot@ti.com> Message-ID: <20170409011358.GW19897@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Apr 07, 2017 at 01:42:08PM +0200, Jean-Jacques Hiblot wrote: > 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 Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: