Messages in this thread Patch in this message | | | Date | Mon, 06 Oct 2003 18:16:49 -0300 | From | Felipe W Damasio <> | Subject | [PATCH] 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 --- 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; } | |