OSDN Git Service

greybus: vibrator: fix tear-down race
authorJohan Hovold <johan@hovoldconsulting.com>
Mon, 14 Sep 2015 18:19:02 +0000 (20:19 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 15 Sep 2015 04:57:25 +0000 (21:57 -0700)
commitd7849bffc622b3405ef226364d67bb81af48c152
tree4e266a89aa5d39347702f5d54000974936945546
parent4c9e228407a25a99876b979479ff76208ab7de47
greybus: vibrator: fix tear-down race

Do not release the minor number until after the device has been
deregistered.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/vibrator.c