projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d1043a
)
greybus: interface: fix double freeing of interface structure
author
Viresh Kumar
<viresh.kumar@linaro.org>
Wed, 21 Oct 2015 09:56:44 +0000
(15:26 +0530)
committer
Greg Kroah-Hartman
<gregkh@google.com>
Wed, 21 Oct 2015 23:17:05 +0000
(16:17 -0700)
The interface will be released by gb_interface_release() once all
references for the interface are dropped. And so there is no need to
free it in the error path specially.
Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/interface.c
patch
|
blob
|
history
diff --git
a/drivers/staging/greybus/interface.c
b/drivers/staging/greybus/interface.c
index
64bf91a
..
5d238d3
100644
(file)
--- a/
drivers/staging/greybus/interface.c
+++ b/
drivers/staging/greybus/interface.c
@@
-167,7
+167,6
@@
struct gb_interface *gb_interface_create(struct greybus_host_device *hd,
free_intf:
put_device(&intf->dev);
- kfree(intf);
put_module:
put_device(&module->dev);
return NULL;