commit | 6a4feb4bf1cccd9438b8345216d1771e5e29be26 | [log] [tgz] |
---|---|---|
author | Jerry Huang <Chang-Ming.Huang@freescale.com> | Tue Nov 06 15:33:12 2012 +0000 |
committer | Tom Rini <trini@ti.com> | Thu Dec 06 13:56:39 2012 -0700 |
tree | 38c47b1880aa925434df5875cb85342bb978e4fe | |
parent | 415cd52f7eae1c8add4f2b1630935514373149c0 [diff] |
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>