From patchwork Mon May 30 01:09:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corey Minyard X-Patchwork-Id: 68818 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp1159757qge; Sun, 29 May 2016 18:10:24 -0700 (PDT) X-Received: by 10.66.231.35 with SMTP id td3mr42053093pac.56.1464570624671; Sun, 29 May 2016 18:10:24 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b16si32765496pfj.23.2016.05.29.18.10.24; Sun, 29 May 2016 18:10:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161116AbcE3BJf (ORCPT + 30 others); Sun, 29 May 2016 21:09:35 -0400 Received: from mail-pa0-f68.google.com ([209.85.220.68]:36692 "EHLO mail-pa0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753419AbcE3BJS (ORCPT ); Sun, 29 May 2016 21:09:18 -0400 Received: by mail-pa0-f68.google.com with SMTP id fg1so19653706pad.3; Sun, 29 May 2016 18:09:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=V/wwMdv5sG8R/ewKDBbHb5ZK7NPnTnBcB0LmIS74kK4=; b=lJj1r2ZlFh0r3TWU2yOXDmhcdieg5ovF6FrNfqLHrE1noqBT4ZDKMo89We7d81FnvF 32qUZol2vtKEIb9PqdNtzO4iIkyv5a329kY0NsvoRJDjb7g0XRn+rhF0ULz6qMpnAY2w AfDp8pn2wxCx9XRlRajS3GBoQMJ7kV7Kb/lnPq7AVpwbidJkV6YzHZL0kgDF5tLm5rE+ gy/yY3Y2AkCW0mR4V9XbB3TVjgH9UiQ+0Ythb2hFtzLj+dXqC3cZoX95lyxJ847bs/2R B+NwFmKPz/4eOADUVIPk6CsQP5CFX8KOq5W92/ljOyvrJw6RWTRVMw5a4lPTckx/8/YR GpJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=V/wwMdv5sG8R/ewKDBbHb5ZK7NPnTnBcB0LmIS74kK4=; b=COd+he+XbQy1vnq86gMlWOaJXtTc0ALizz6dCzwOXtr5L2848zbgBXelD6Ds7+DbG6 gD3MwBPXUNwIF85s8Ww9qCvsM3EBXdRzHx/8OadU7J7LxEcRNX77sF5Mry8yBuRZ2ngj JnM4qBuRSFFPXlNwPaQdtOEU1ovmmCHpqULX03MTF9zQw/KXK2KrRWkGTczUrSbz9vwY s9wSPaiF1qu354DlPbZWs9w+iCuXuPjMRL7sYxJqEFEtR9wAiNzMwchwJLaFMAvZLuel 2VRJLNhgWL3OJkgjUNa3R8LzggUtzguFuA9O9ESzBn7VmNufwpMceqazbGMULMM9OIg5 4hgw== X-Gm-Message-State: ALyK8tKJp4MNqJkoMizJCs3mS70ZABKuXIMZxnkzWB7Cw4o0Hkxvnh7YoFwQ2cMPn4b7Og== X-Received: by 10.66.123.37 with SMTP id lx5mr42156802pab.101.1464570557865; Sun, 29 May 2016 18:09:17 -0700 (PDT) Received: from serve.minyard.net ([108.19.215.157]) by smtp.gmail.com with ESMTPSA id p4sm42743971pac.1.2016.05.29.18.09.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 29 May 2016 18:09:17 -0700 (PDT) Received: from t430.minyard.net (t430m.minyard.net [192.168.27.3]) by serve.minyard.net (Postfix) with ESMTPA id E082A1078; Sun, 29 May 2016 20:09:12 -0500 (CDT) Received: by t430.minyard.net (Postfix, from userid 1000) id 4EF80300523; Sun, 29 May 2016 20:09:08 -0500 (CDT) From: minyard@acm.org To: Jean Delvare , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, minyard@acm.org Cc: Corey Minyard Subject: [PATCH v2 09/10] i2c-i801: Null isr data buffer when done with it Date: Sun, 29 May 2016 20:09:03 -0500 Message-Id: <1464570544-975-10-git-send-email-minyard@acm.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1464570544-975-1-git-send-email-minyard@acm.org> References: <1464570544-975-1-git-send-email-minyard@acm.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Corey Minyard Don't leave a pointer to some external buffer lying around. Signed-off-by: Corey Minyard --- drivers/i2c/busses/i2c-i801.c | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c index 70da60a..bb15356 100644 --- a/drivers/i2c/busses/i2c-i801.c +++ b/drivers/i2c/busses/i2c-i801.c @@ -598,6 +598,7 @@ static int i801_block_transaction_byte_by_byte(struct i801_priv *priv, dev_warn(&priv->pci_dev->dev, "Timeout waiting for interrupt!\n"); } + priv->data = NULL; priv->status = 0; return status; }