Skip to content

Commit

Permalink
i2o message leak in i2o_msg_post_wait_mem()
Browse files Browse the repository at this point in the history
We need to free i2o msg in case of error.

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>
  • Loading branch information
Vasily Averin authored and Linus Torvalds committed Jul 17, 2007
1 parent 010904c commit 3d0fd33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/message/i2o/exec-osm.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,10 @@ int i2o_msg_post_wait_mem(struct i2o_controller *c, struct i2o_message *msg,
int rc = 0;

wait = i2o_exec_wait_alloc();
if (!wait)
if (!wait) {
i2o_msg_nop(c, msg);
return -ENOMEM;
}

if (tcntxt == 0xffffffff)
tcntxt = 0x80000000;
Expand Down

0 comments on commit 3d0fd33

Please sign in to comment.