From: Samuel Iglesias Gonsalvez Date: Fri, 25 May 2012 08:03:03 +0000 (+0200) Subject: Staging: ipack/devices/ipoctal: avoid kernel oops when uninstalling X-Git-Tag: v3.6-rc1~100^2~904 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=597d473f163a1672262b845ede8a65afdf1b27c6;p=pandora-kernel.git Staging: ipack/devices/ipoctal: avoid kernel oops when uninstalling When uninstalling a device, there is a loop of calls that produces, at the end, two calls to __ipoctal_remove() function with the same ipack_device argument. The first time works fine, but the second will fail in tty_unregister_driver() To avoid this situation, the call to __ipoctal_remove() it is done only from the ipack bus driver and not from the ipack device driver. Signed-off-by: Samuel Iglesias Gonsalvez Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed