memory leak in imsttfb video driver
PATCH 1/1 memory leak in imsttfb video driver
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
drivers/video/imsttfb.c renamed from drivers/video/imsttfb.c.orig +2 -0
@@ -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 ; }