lkml.org 
[lkml]   [2003]   [Oct]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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;
}
\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.019 / U:0.884 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site