diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2015-07-25 10:49:40 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-07-25 22:48:05 +0300 |
commit | 4e5a74f1db8d6bea48306126fd445e2720f07a95 (patch) | |
tree | 7f9215b517f676f6d13afb39ee6682bc3a0838ae /drivers | |
parent | 154322f47376fed6ab1e4b350aa45fffa15a61aa (diff) | |
download | linux-4e5a74f1db8d6bea48306126fd445e2720f07a95.tar.xz |
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')
-rw-r--r-- | drivers/parport/share.c | 1 |
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); } |