[PATCH] fbdev: correct buffer size limit in fbmem_read_proc()
authorGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 3 Oct 2006 08:15:11 +0000 (01:15 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 3 Oct 2006 15:04:13 +0000 (08:04 -0700)
commita09fd48f8fb6ecb8bf85efdd884b21b6201ef9cc
tree5e72898b6c72ad5a351a6b83c3b92ed39e4e2430
parentf5b747b487038ce2a23e7b922bc4d27149838965
[PATCH] fbdev: correct buffer size limit in fbmem_read_proc()

Address http://bugzilla.kernel.org/show_bug.cgi?id=7189

It should check `clen', not `len'.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: <jurij@wooyd.org>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Cc: <stable@kernel.org>
Cc: Willy Tarreau <w@1wt.eu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/fbmem.c