[PATCH] memory leak in imsttfb video driver
From: Felipe W Damasio
Date: Mon Oct 06 2003 - 16:14:10 EST
Hi Paul,
Patch against 2.6.0-test6.
- Fixes 2 leaks in imsttfb driver: Frees the info struct imstt_par
and releases the mem region if the device type is unknown.
Found by smatch.
Please consider applying,
Thanks.
Felipe
--- linux-2.6.0-test6/drivers/video/imsttfb.c.orig 2003-10-06 18:03:53.000000000 -0300
+++ linux-2.6.0-test6/drivers/video/imsttfb.c 2003-10-06 18:12:30.000000000 -0300
@@ -1495,6 +1495,8 @@
default:
printk(KERN_INFO "imsttfb: Device 0x%x unknown, "
"contact maintainer.\n", pdev->device);
+ kfree(info);
+ release_mem_region(addr, size);
return -ENODEV;
}