summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorhtbegin <[email protected]>2013-03-01 23:00:34 +0000
committerScott Wood <[email protected]>2013-05-22 16:50:59 -0500
commit453db36863668df08078838029d988b72f0ee994 (patch)
tree8ffda41510fae2a2f91967e096dc3e368e4ee74f /include/linux
parent070fd8e5295185546801a0f11ea5edd22833a02b (diff)
mtd: nand: use ssize_t instead of size_t to prevent infinite loop
When a all 0xFF buffer is passed to drop_ffs, the no-0xFF check loop will loop forever. After the fix, If ssize_t i = -1 and size_t l = i + 1, the value of l will still be 0 as expected. Signed-off-by: Tao Hou <[email protected]> Cc: Ben Gardiner <[email protected]> Cc: Scott Wood <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions