greybus: gb_operation: drop operation refcount on cancel
authorPerry Hung <perry@leaflabs.com>
Wed, 14 Jan 2015 21:19:27 +0000 (16:19 -0500)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 16 Jan 2015 19:09:45 +0000 (11:09 -0800)
commita1f2e40b1a30c2b8a2dfc40d859550081195b57a
treeb7292ef3bf469e938c3182180505fd663d8db379
parent7bad4e85b8f988a182cce7949591923e091a509e
greybus: gb_operation: drop operation refcount on cancel

An extra reference is taken out on an operation in
gb_operation_request_send(). If the response never arrives, we need to
put back the reference.

Signed-off-by: Perry Hung <perry@leaflabs.com>
Tested-by: Mitchell Tasman <tasman@leaflabs.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/operation.c