From patchwork Mon May 6 15:44:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gianluca Gennari X-Patchwork-Id: 2524651 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 0CD7C3FD85 for ; Mon, 6 May 2013 15:45:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755383Ab3EFPpP (ORCPT ); Mon, 6 May 2013 11:45:15 -0400 Received: from mail-ee0-f43.google.com ([74.125.83.43]:44087 "EHLO mail-ee0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753830Ab3EFPpO (ORCPT ); Mon, 6 May 2013 11:45:14 -0400 Received: by mail-ee0-f43.google.com with SMTP id b15so1870246eek.2 for ; Mon, 06 May 2013 08:45:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=uGng1A72vncNc/hJvHoxsEqeVCmpalu8aYyNvL3AE8Q=; b=VT/LOGFPY/mXrct0gLIkMQ5ZmqF7SAPhmHEhsmKwtr6MzNzJ6G/IMAJPPMyRtHDheV iIGLE9r4Z4V4cwdsUG/gX1opAq+idwE603HYVjsxiYUf99oK/K+VeURkUOV5Jyca5g9f JR8GcFJSzCeXgBo5j2s21VKoo9XgkDUoBladLacYa+HvueRjZb6SWRml0Cc0K3KPgrvD ymOyyQGnOK9mRGwj3QdfjfbWXy/UlMEopXqhQp2i/pFnDA5leMIE4cUO0e5kno2Yb7kE 1mkCDIMMEunQSmGvsfHgxp3Of1Y6wTDEpquirrXZMLFoiEn9yhkFZkHu36iNfUaDXwGJ t6sA== X-Received: by 10.15.32.71 with SMTP id z47mr50647995eeu.3.1367855113156; Mon, 06 May 2013 08:45:13 -0700 (PDT) Received: from localhost.localdomain (93-50-34-119.ip150.fastwebnet.it. [93.50.34.119]) by mx.google.com with ESMTPSA id x41sm25331914eey.17.2013.05.06.08.45.11 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 06 May 2013 08:45:12 -0700 (PDT) From: Gianluca Gennari To: linux-media@vger.kernel.org, mchehab@redhat.com Cc: Gianluca Gennari Subject: [PATCH 1/3] r820t: do not double-free fe->tuner_priv in r820t_release() Date: Mon, 6 May 2013 17:44:35 +0200 Message-Id: <1367855077-6134-2-git-send-email-gennarone@gmail.com> X-Mailer: git-send-email 1.8.2.2 In-Reply-To: <1367855077-6134-1-git-send-email-gennarone@gmail.com> References: <1367855077-6134-1-git-send-email-gennarone@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org fe->tuner_priv is already freed by hybrid_tuner_release_state(). Signed-off-by: Gianluca Gennari --- drivers/media/tuners/r820t.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/tuners/r820t.c b/drivers/media/tuners/r820t.c index 2d6d498..0a5f96b 100644 --- a/drivers/media/tuners/r820t.c +++ b/drivers/media/tuners/r820t.c @@ -2256,7 +2256,6 @@ static int r820t_release(struct dvb_frontend *fe) mutex_unlock(&r820t_list_mutex); - kfree(fe->tuner_priv); fe->tuner_priv = NULL; return 0;