parport: Revert "parport: fix memory leak"

This reverts commit 23c405912b ("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>
This commit is contained in:
Sudip Mukherjee 2015-07-25 13:19:40 +05:30 committed by Greg Kroah-Hartman
parent 154322f473
commit 4e5a74f1db
1 changed files with 0 additions and 1 deletions

View File

@ -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);
}