Re: [PATCH V3] MMC: core: cap MMC card timeouts at UINT_MAX

2012-06-04 Thread Adrian Hunter
On 01/06/12 16:20, Torne (Richard Coles) wrote: From: Torne (Richard Coles) to...@google.com MMC CSD info can specify very large, ridiculous timeouts, big enough to overflow timeout_ns. This can result in the card timing out on every operation because the wrapped timeout value is far too

[PATCH V3] MMC: core: cap MMC card timeouts at UINT_MAX

2012-06-01 Thread Torne (Richard Coles)
From: Torne (Richard Coles) to...@google.com MMC CSD info can specify very large, ridiculous timeouts, big enough to overflow timeout_ns. This can result in the card timing out on every operation because the wrapped timeout value is far too small. Fix the overflow by capping the result at