UIO: uio_pdrv: fix memory leak
authorUwe Kleine-König <Uwe.Kleine-Koenig@digi.com>
Fri, 11 Jul 2008 09:10:36 +0000 (11:10 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 21 Aug 2008 17:15:38 +0000 (10:15 -0700)
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>
drivers/uio/uio_pdrv.c

index 5d0d2e8..aa3bff8 100644 (file)
@@ -88,6 +88,8 @@ static int uio_pdrv_remove(struct platform_device *pdev)
 
        uio_unregister_device(pdata->uioinfo);
 
+       kfree(pdata);
+
        return 0;
 }