diff options
author | Uwe Kleine-König <Uwe.Kleine-Koenig@digi.com> | 2008-07-11 13:10:36 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-08-21 21:15:38 +0400 |
commit | 331995e78385a0b9860f4c4c1766e842e61c450a (patch) | |
tree | ba53de09edc47c811c06c6447d7b383beb5300d1 /drivers/uio/uio_pdrv.c | |
parent | 5c0ef6d0214a08e5c846f4c45228adf135d8d0ef (diff) | |
download | linux-331995e78385a0b9860f4c4c1766e842e61c450a.tar.xz |
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/uio/uio_pdrv.c')
-rw-r--r-- | drivers/uio/uio_pdrv.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |