]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] packet writing oops fix
authorPeter Osterlund <petero2@telia.com>
Mon, 14 Nov 2005 00:06:36 +0000 (16:06 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 14 Nov 2005 02:14:11 +0000 (18:14 -0800)
commitbb368e1533a82143b8c9831a68c5460604970340
tree43c1c2f9c8144f8c8ac2974f878fdc448693c4f5
parent47d1b31d9a0b457b326cc916b5707a388bd5868f
[PATCH] packet writing oops fix

There is an old bug in the pkt_count_states() function that causes stack
corruption.  When compiling with gcc 3.x or 2.x it is harmless, but gcc 4
allocates local variables differently, which makes the bug visible.

Signed-off-by: Peter Osterlund <petero2@telia.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/block/pktcdvd.c