usb: roles: Take care of driver module reference counting
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Wed, 19 Sep 2018 07:58:05 +0000 (10:58 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Sep 2018 11:20:24 +0000 (13:20 +0200)
commit5c54fcac9a9de559b444ac63ec3cd82f1d157a0b
tree06e3af99439cd5ca1fe7700f88b74d2bee2cc079
parentc9a4cb204e9eb7fa7dfbe3f7d3a674fa530aa193
usb: roles: Take care of driver module reference counting

This fixes potential "BUG: unable to handle kernel paging
request at ..." from happening.

Fixes: fde0aa6c175a ("usb: common: Small class for USB role switches")
Cc: <stable@vger.kernel.org>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/common/roles.c