diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-03-12 19:32:51 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-03-12 19:32:51 -0700 |
commit | aa8e4fc68d8024cd3132035d13c3cefa7baeac8f (patch) | |
tree | ace4457c20730a5a557f91599ba30274a89c46a8 /lib/fonts | |
parent | 9ead64974b05501bbac0d63a47c99fa786d064ba (diff) |
bitmap: fix end condition in bitmap_find_free_region
Guennadi Liakhovetski noticed that the end condition for the loop in
bitmap_find_free_region() is wrong, and the "return if error" was also
using the wrong conditional that would only trigger if the bitmap was an
exact multiple of the allocation size, which is not necessarily the case
with dma_alloc_from_coherent().
Such a failure would end up in bitmap_find_free_region() accessing
beyond the end of the bitmap.
Reported-by: Guennadi Liakhovetski <lg@denx.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/fonts')
0 files changed, 0 insertions, 0 deletions