OSDN Git Service

greybus: endo: fix use-after-free in error path
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 21 Oct 2015 09:51:42 +0000 (11:51 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 21 Oct 2015 23:12:42 +0000 (16:12 -0700)
commit16cd787d2d54a47b1d8575bb96bff4b0edc7000b
treea97878a6a293505110e6b95d15a68ef519e46045
parentd517f274e9db414ae4d6df5173c3e7f41b9dac66
greybus: endo: fix use-after-free in error path

Fix use-after-free in endo-registration error path by moving the
id-release to the device release function.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/endo.c