From: Uwe Kleine-König Date: Fri, 11 Jul 2008 09:10:36 +0000 (+0200) Subject: UIO: uio_pdrv: fix memory leak X-Git-Tag: v2.6.27-rc5~54^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=331995e78385a0b9860f4c4c1766e842e61c450a;p=linux-2.6-omap-h63xx.git UIO: uio_pdrv: fix memory leak Thanks to Magnus Damm for pointing that out. Signed-off-by: Uwe Kleine-König Cc: Magnus Damm Acked-by: Hans J. Koch Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/uio/uio_pdrv.c b/drivers/uio/uio_pdrv.c index 5d0d2e85d98..aa3bff8f93a 100644 --- a/drivers/uio/uio_pdrv.c +++ b/drivers/uio/uio_pdrv.c @@ -88,6 +88,8 @@ static int uio_pdrv_remove(struct platform_device *pdev) uio_unregister_device(pdata->uioinfo); + kfree(pdata); + return 0; }