summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorUwe Kleine-König <Uwe.Kleine-Koenig@digi.com>2008-07-11 11:10:36 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2008-08-21 10:15:38 -0700
commit331995e78385a0b9860f4c4c1766e842e61c450a (patch)
treeba53de09edc47c811c06c6447d7b383beb5300d1 /drivers
parent5c0ef6d0214a08e5c846f4c45228adf135d8d0ef (diff)
downloadop-kernel-dev-331995e78385a0b9860f4c4c1766e842e61c450a.zip
op-kernel-dev-331995e78385a0b9860f4c4c1766e842e61c450a.tar.gz
UIO: uio_pdrv: fix memory leak
Thanks to Magnus Damm for pointing that out. Signed-off-by: Uwe Kleine-König <Uwe.Kleine-Koenig@digi.com> Cc: Magnus Damm <magnus.damm@gmail.com> Acked-by: Hans J. Koch <hjk@linutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/uio/uio_pdrv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/uio/uio_pdrv.c b/drivers/uio/uio_pdrv.c
index 5d0d2e8..aa3bff8 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;
}
OpenPOWER on IntegriCloud