UIO: uio_pdrv: fix memory leak

From: Uwe Kleine-König
Date: Fri Jul 11 2008 - 05:10:36 EST



Thanks to Magnus Damm for pointing that out.

Signed-off-by: Uwe Kleine-König <Uwe.Kleine-Koenig@xxxxxxxx>
Cc: Magnus Damm <magnus.damm@xxxxxxxxx>
Acked-by: Hans J. Koch <hjk@xxxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxx>

---
drivers/uio/uio_pdrv.c | 2 ++
1 file changed, 2 insertions(+)

--- a/drivers/uio/uio_pdrv.c
+++ b/drivers/uio/uio_pdrv.c
@@ -88,6 +88,8 @@ static int uio_pdrv_remove(struct platfo

uio_unregister_device(pdata->uioinfo);

+ kfree(pdata);
+
return 0;
}



Patches currently in gregkh-2.6 which might be from Uwe.Kleine-Koenig@xxxxxxxx are

driver-core.current/uio-uio_pdrv-fix-license-specification.patch
driver-core.current/uio-uio_pdrv-fix-memory-leak.patch
driver-core.current/uio-generic-irq-handling-for-some-uio-platform-devices.patch
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/