mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-26 18:43:33 -05:00
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
1 changed files with 0 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue