Searched hist:"33699 df1" (Results 1 – 1 of 1) sorted by relevance
/openbmc/u-boot/disk/ |
H A D | part.c | 33699df1 Tue Nov 06 09:33:12 CST 2012 Jerry Huang <Chang-Ming.Huang@freescale.com> part: check each variable for capability calculation In order to calculate the capability, we use the below expression to check: ((dev_desc->lba * dev_desc->blksz)>0L) If the capability is greater than 4GB (e.g. 8GB = 8 * 1024 * 104 * 1024), the result will overflow, the low 32bit may be zero. Therefore, change to check each variable to fix this potential issue. Signed-off-by: Jerry Huang <Chang-Ming.Huang@freescale.com>
|