[PATCH] Add missing overflow check in get_blkdev_list
authorNeil Horman <nhorman@redhat.com>
Tue, 6 Sep 2005 22:17:30 +0000 (15:17 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 7 Sep 2005 23:57:30 +0000 (16:57 -0700)
commitf62c6d0a2607b2d1fdf280d4d1467a7a6e24c67d
treeb95a3ebe7a0e2703c38636530313bcc1dfd96564
parentf23ef184b486ac021b6a471b4e94cfa04860d3b0
[PATCH] Add missing overflow check in get_blkdev_list

Patch to clean up missing overflow check in get_blkdev_list.  The printf
which adds the "Block Devices" string in /proc/devices can overflow the
presented page if get_chrdev_list eats up the entire 4k space.

Signed-off-by: Neil Horman <nhorman@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/block/genhd.c