Skip to content

Commit

Permalink
parport: Revert "parport: fix memory leak"
Browse files Browse the repository at this point in the history
This reverts commit 23c4059 ("parport: fix memory leak")

par_dev->state was already being removed in parport_unregister_device().

Reported-by: Ying Huang <[email protected]>
Signed-off-by: Sudip Mukherjee <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
sudipm-mukherjee authored and gregkh committed Jul 25, 2015
1 parent 154322f commit 4e5a74f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/parport/share.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 4e5a74f

Please sign in to comment.