aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd/commit.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin <[email protected]>2010-07-26 07:25:30 +0000
committerLinus Torvalds <[email protected]>2010-07-26 15:05:31 +0000
commit1fe9b6fef11771461e69ecd1bc8935a1c7c90cb5 (patch)
tree3ecc82deed99dc11c67d64bfea2737fc68d769d3 /fs/jbd/commit.c
parentInput: RX51 keymap - fix recent compile breakage (diff)
downloadkernel-1fe9b6fef11771461e69ecd1bc8935a1c7c90cb5.tar.gz
kernel-1fe9b6fef11771461e69ecd1bc8935a1c7c90cb5.zip
virtio: fix oops on OOM
virtio ring was changed to return an error code on OOM, but one caller was missed and still checks for vq->vring.num. The fix is just to check for <0 error code. Long term it might make sense to change goto add_head to just return an error on oom instead, but let's apply a minimal fix for 2.6.35. Reported-by: Chris Mason <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Signed-off-by: Rusty Russell <[email protected]> Tested-by: Chris Mason <[email protected]> Cc: [email protected] # .34.x Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/jbd/commit.c')
0 files changed, 0 insertions, 0 deletions