greybus: interface: fix potential use-after-free at remove
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 11 Nov 2015 09:07:05 +0000 (10:07 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 11 Nov 2015 17:18:28 +0000 (09:18 -0800)
commiteeb6a6ff597ee47a6ecc652dab769c3137fd1483
tree15fd00273bb213efdbd142b9d370df7356b5b19b
parentf865734d3cf58cc9aba3f58962fbca7b97fe47d4
greybus: interface: fix potential use-after-free at remove

Fix resources (accessible through sysfs) being released before interface
is deregistered.

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