UIO: uio_pdrv: fix memory leak

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]>
This commit is contained in:
Uwe Kleine-König 2008-07-11 11:10:36 +02:00 • committed by Greg Kroah-Hartman
commit 331995e783

View file

@ -88,6 +88,8 @@ static int uio_pdrv_remove(struct platform_device *pdev)
uio_unregister_device(pdata->uioinfo);
kfree(pdata);
return 0;
}