]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
Fix bitmap_scnlistprintf for empty masks
authorAndi Kleen <ak@suse.de>
Mon, 5 Nov 2007 22:50:56 +0000 (14:50 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 5 Nov 2007 23:12:32 +0000 (15:12 -0800)
commit0b030c2c2f0f1d98d5fe412e5b7cf7fd53f5221a
treeff10db5bc25c1aa3e7cc5c8dac6807d76fd7f506
parent5a75983eef1193c43caebde6643a218bd8d8390e
Fix bitmap_scnlistprintf for empty masks

When a bitmap is empty bitmap_scnlistprintf() would leave the buffer
uninitialized.  Set it to an empty string in this case.

I didn't see any in normal kernel callers hitting this, but some custom
debug code of mine did.

Signed-off-by: Andi Kleen <ak@suse.de>
Acked-by: Paul Jackson <pj@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/bitmap.c