Staging: ipack/bridges/tpci200: fix kernel oops when uninstalling a device
authorSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Fri, 25 May 2012 08:03:05 +0000 (10:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Jun 2012 05:20:30 +0000 (14:20 +0900)
commit20cf70082440ffabbec5c275726f68fe53872c94
treeaae44c0392235ee427d3a29d833d881ec9dc06f1
parentca2d2bb6618396ec0a79b182fcd1591ef62b07cb
Staging: ipack/bridges/tpci200: fix kernel oops when uninstalling a device

When uninstalling a device, the call to the ipack_bus_ops remove() frees
resources in the ipack device driver but without unregistering the device.

It generates a kernel oops when somebody wants to unregister the device.

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ipack/bridges/tpci200.c