From: Uwe Kleine-König Date: Fri, 11 Jul 2008 09:10:36 +0000 (+0200) Subject: UIO: uio_pdrv: fix memory leak X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=331995e78385a0b9860f4c4c1766e842e61c450a;p=openwrt%2Fstaging%2Fblogic.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 5d0d2e85d982..aa3bff8f93ab 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; }