greybus: camera: fix memory leak in capture-request handler
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 30 Dec 2015 10:08:01 +0000 (11:08 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 30 Dec 2015 21:16:06 +0000 (13:16 -0800)
commitb9f71bc854105148f38d0c2336ed7c9b50a97800
tree2f66b766636bbd6a4267de5a2bc7f7198ced2791
parent12c8b0dcc884cc7f1f925cd1ed08cf8cdc95e7ef
greybus: camera: fix memory leak in capture-request handler

Fix memory leak in capture-request handler by making sure to release the
operation request buffer after sending the request.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/camera.c