Skip to content

Commit

Permalink
UIO: uio_pdrv: fix memory leak
Browse files Browse the repository at this point in the history
Thanks to Magnus Damm for pointing that out.

Signed-off-by: Uwe Kleine-König <[email protected]>
Cc: Magnus Damm <[email protected]>
Acked-by: Hans J. Koch <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
Uwe Kleine-König authored and gregkh committed Aug 21, 2008
1 parent 5c0ef6d commit 331995e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/uio/uio_pdrv.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ static int uio_pdrv_remove(struct platform_device *pdev)

uio_unregister_device(pdata->uioinfo);

kfree(pdata);

return 0;
}

Expand Down

0 comments on commit 331995e

Please sign in to comment.