diff options
author | Uwe Kleine-König <Uwe.Kleine-Koenig@digi.com> | 2008-07-11 11:10:36 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-08-21 19:15:38 +0200 |
commit | 331995e78385a0b9860f4c4c1766e842e61c450a (patch) | |
tree | ba53de09edc47c811c06c6447d7b383beb5300d1 /drivers | |
parent | block: drop references taken by class_find_device() (diff) | |
download | linux-331995e78385a0b9860f4c4c1766e842e61c450a.tar.xz linux-331995e78385a0b9860f4c4c1766e842e61c450a.zip |
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.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; } |