]> git.karo-electronics.de Git - karo-tx-linux.git/commit
greybus: operation: fix memory leak in request_send error path
authorJohan Hovold <johan@hovoldconsulting.com>
Fri, 27 Mar 2015 11:41:14 +0000 (12:41 +0100)
committerGreg Kroah-Hartman <greg@kroah.com>
Mon, 30 Mar 2015 13:13:01 +0000 (15:13 +0200)
commitea2c2ee80571388ef4641597c00ca10da3728127
tree44b820b2f9e0e3c9a447f5d99fb4462b9218ef23
parent0fb5acc4018c0da61f9084932d0cd816fab77eec
greybus: operation: fix memory leak in request_send error path

Make sure to drop the operation reference when sending the request fails
to avoid leaking the operation structures.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/operation.c