From: Sudip Mukherjee Date: Sat, 25 Jul 2015 07:49:40 +0000 (+0530) Subject: parport: Revert "parport: fix memory leak" X-Git-Tag: firefly_0821_release~176^2~1364^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4e5a74f1db8d6bea48306126fd445e2720f07a95;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Sudip Mukherjee Signed-off-by: Greg Kroah-Hartman --- 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); }