diff options
author | Johan Hovold <johan@hovoldconsulting.com> | 2015-09-26 17:59:15 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-09-29 19:14:26 +0200 |
commit | 6ab1ce4d542ea1b5ffa40321e021d95de47880ea (patch) | |
tree | b383b7003da3bdf175611b6538fb5621d43d8d89 /drivers/staging/greybus/hid.c | |
parent | greybus: es1/2: fix use-after-free in completion callback (diff) | |
download | linux-dev-6ab1ce4d542ea1b5ffa40321e021d95de47880ea.tar.xz linux-dev-6ab1ce4d542ea1b5ffa40321e021d95de47880ea.zip |
greybus: operation: remove gb_operation_destroy
Remove legacy interface to "destroy" operations, which is now just a
wrapper for gb_operation_put.
The old interface name hides the fact that all operations are refcounted
and may live on even after having "destroyed" them.
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/hid.c')
-rw-r--r-- | drivers/staging/greybus/hid.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/greybus/hid.c b/drivers/staging/greybus/hid.c index 0044b844c3e9..a2f0612076d5 100644 --- a/drivers/staging/greybus/hid.c +++ b/drivers/staging/greybus/hid.c @@ -92,7 +92,8 @@ static int gb_hid_set_report(struct gb_hid *ghid, u8 report_type, u8 report_id, ret = len; } - gb_operation_destroy(operation); + gb_operation_put(operation); + return ret; } |