Jerry Huang 33699df12c 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>
2012-12-06 13:56:39 -07:00
..
2011-07-26 14:10:14 +02:00
2012-06-21 20:53:09 +02:00
2003-06-27 21:31:46 +00:00
2012-06-21 20:53:09 +02:00
2008-05-21 00:14:08 +02:00
2003-06-27 21:31:46 +00:00