From mboxrd@z Thu Jan 1 00:00:00 1970 From: domen@coderock.org Subject: [patch 1/9] sis_main.c - vfree() checking cleanups Date: Sun, 06 Mar 2005 11:36:12 +0100 Message-ID: <20050306103612.9D96E1F208@trashy.coderock.org> Reply-To: linux-fbdev-devel@lists.sourceforge.net Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.11] helo=sc8-sf-mx1.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1D7t7U-0001fj-Ja for linux-fbdev-devel@lists.sourceforge.net; Sun, 06 Mar 2005 02:36:20 -0800 Received: from coderock.org ([193.77.147.115] helo=trashy.coderock.org ident=postfix) by sc8-sf-mx1.sourceforge.net with esmtp (Exim 4.41) id 1D7t7T-0003XF-0M for linux-fbdev-devel@lists.sourceforge.net; Sun, 06 Mar 2005 02:36:20 -0800 Sender: linux-fbdev-devel-admin@lists.sourceforge.net Errors-To: linux-fbdev-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: adaplas@pol.net Cc: linux-fbdev-devel@lists.sourceforge.net, domen@coderock.org, jlamanna@gmail.com sis_main.c vfree() checking cleanups. Signed-off by: James Lamanna Signed-off-by: Domen Puncer --- kj-domen/drivers/video/sis/sis_main.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/video/sis/sis_main.c~vfree-drivers_video_sis_sis_main drivers/video/sis/sis_main.c --- kj/drivers/video/sis/sis_main.c~vfree-drivers_video_sis_sis_main 2005-03-05 16:10:38.000000000 +0100 +++ kj-domen/drivers/video/sis/sis_main.c 2005-03-05 16:10:38.000000000 +0100 @@ -5639,7 +5639,7 @@ static void __devexit sisfb_remove(struc /* Unmap */ iounmap(ivideo->video_vbase); iounmap(ivideo->mmio_vbase); - if(ivideo->bios_abase) vfree(ivideo->bios_abase); + vfree(ivideo->bios_abase); /* Release mem regions */ release_mem_region(ivideo->video_base, ivideo->video_size); _ ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click