mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
i2o message leak in i2o_msg_post_wait_mem()
We need to free i2o msg in case of error. Signed-off-by: Vasily Averin <[email protected]> Acked-by: Alan Cox <[email protected]> Cc: Markus Lidel <[email protected]> Acked-by: Kirill Korotaev <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
010904cbed
commit
3d0fd333a1
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue