summaryrefslogtreecommitdiffstats
path: root/drivers/parport
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2015-07-25 09:49:40 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-07-25 21:48:05 +0200
commit4e5a74f1db8d6bea48306126fd445e2720f07a95 (patch)
tree7f9215b517f676f6d13afb39ee6682bc3a0838ae /drivers/parport
parentmei: prevent unloading mei hw modules while the device is opened. (diff)
downloadlinux-4e5a74f1db8d6bea48306126fd445e2720f07a95.tar.xz
linux-4e5a74f1db8d6bea48306126fd445e2720f07a95.zip
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>
Diffstat (limited to 'drivers/parport')
-rw-r--r--drivers/parport/share.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/parport/share.c b/drivers/parport/share.c
index c02b5f27798b..5ce5ef211bdb 100644
--- a/drivers/parport/share.c
+++ b/drivers/parport/share.c
@@ -816,7 +816,6 @@ static void free_pardevice(struct device *dev)
struct pardevice *par_dev = to_pardevice(dev);
kfree(par_dev->name);
- kfree(par_dev->state);
kfree(par_dev);
}