]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
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 5d0d2e85d9820ed70c48b900c262d7ff1c44f393..aa3bff8f93ab1be7ee5ca6b2376381d8bbbe2136 100644 (file)
@@ -88,6 +88,8 @@ static int uio_pdrv_remove(struct platform_device *pdev)
 
        uio_unregister_device(pdata->uioinfo);
 
+       kfree(pdata);
+
        return 0;
 }