parport: Revert "parport: fix memory leak"
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Sat, 25 Jul 2015 07:49:40 +0000 (13:19 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Jul 2015 19:48:05 +0000 (12:48 -0700)
commit4e5a74f1db8d6bea48306126fd445e2720f07a95
tree7f9215b517f676f6d13afb39ee6682bc3a0838ae
parent154322f47376fed6ab1e4b350aa45fffa15a61aa
parport: Revert "parport: fix memory leak"

This reverts commit 23c405912b88 ("parport: fix memory leak")

par_dev->state was already being removed in parport_unregister_device().

Reported-by: Ying Huang <ying.huang@intel.com>
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/parport/share.c