From patchwork Sat Feb 13 11:02:45 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Lavra X-Patchwork-Id: 79179 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1DB15of023579 for ; Sat, 13 Feb 2010 11:01:05 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752595Ab0BMLA6 (ORCPT ); Sat, 13 Feb 2010 06:00:58 -0500 Received: from cp-out8.libero.it ([212.52.84.108]:49497 "EHLO cp-out8.libero.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752392Ab0BMLA5 (ORCPT ); Sat, 13 Feb 2010 06:00:57 -0500 Received: from [151.82.20.20] (151.82.20.20) by cp-out8.libero.it (8.5.107) id 4B5E3F4101722DEE for linux-media@vger.kernel.org; Sat, 13 Feb 2010 12:00:55 +0100 Subject: [PATCH] em28xx-dvb: fix memleak in dvb_fini() From: Francesco Lavra To: linux-media@vger.kernel.org Date: Sat, 13 Feb 2010 12:02:45 +0100 Message-Id: <1266058965.3974.23.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.0.1-1mdk Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sat, 13 Feb 2010 11:01:05 +0000 (UTC) --- a/drivers/media/video/em28xx/em28xx-dvb.c 2009-12-31 12:23:53.000000000 +0100 +++ b/drivers/media/video/em28xx/em28xx-dvb.c 2009-12-31 12:23:56.000000000 +0100 @@ -606,6 +606,7 @@ static int dvb_fini(struct em28xx *dev) if (dev->dvb) { unregister_dvb(dev->dvb); + kfree(dev->dvb); dev->dvb = NULL; }