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:
parent
154322f473
commit
4e5a74f1db
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue