aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/message/i2o/debug.c
diff options
context:
space:
mode:
authorVasily Averin <vvs@sw.ru>2007-07-17 04:04:25 -0700
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-17 10:23:06 -0700
commit010904cbed3db3464213fbc602802cc6f53e56e1 (patch)
tree988b0689b63757dbac896ec9c2a8bf6ebb76b618 /drivers/message/i2o/debug.c
parenti2o_cfg_passthru cleanup (diff)
downloadwireguard-linux-010904cbed3db3464213fbc602802cc6f53e56e1.tar.xz
wireguard-linux-010904cbed3db3464213fbc602802cc6f53e56e1.zip
wrong memory access in i2o_block_device_lock()
This patch fixes access to memory that has not been allocated: i2o_msg_get_wait() can returns errors different from I2O_QUEUE_EMPTY. But the result is checked only against this code. If it is not I2O_QUEUE_EMPTY then we dereference the error code as the pointer later. Signed-off-by: Vasily Averin <vvs@sw.ru> Acked-by: Alan Cox <alan@lxorguk.ukuu.org.uk> Cc: Markus Lidel <Markus.Lidel@shadowconnect.com> Acked-by: Kirill Korotaev <dev@openvz.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/message/i2o/debug.c')
0 files changed, 0 insertions, 0 deletions