]> git.baikalelectronics.ru Git - kernel.git/commit
RAMOOPS: Don't overflow over non-allocated regions
authorAhmed S. Darwish <darwish.07@gmail.com>
Sat, 25 Dec 2010 09:57:09 +0000 (11:57 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 28 Dec 2010 19:12:32 +0000 (11:12 -0800)
commitad80f28c3888805d91fe35f315eee14f06ec7ab4
tree938017e949de036589035da33975257e68afed65
parent87146b1f0e3e9d7ab368bba935bfce0ea1b50ddf
RAMOOPS: Don't overflow over non-allocated regions

The current code mis-calculates the ramoops header size, leading to an
overflow over the next record at best, or over a non-allocated region at
worst.  Fix that calculation.

Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
Acked-by: Marco Stornelli <marco.stornelli@gmail.com>
Cc: stable@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/ramoops.c