Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1408696
| From | minyard@acm.org |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 09/10] i2c-i801: Null isr data buffer when done with it |
| Date | 2016-05-30 03:20 +0200 |
| Message-ID | <rEk25-5IM-7@gated-at.bofh.it> (permalink) |
| References | <rEjSp-5Fx-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Corey Minyard <cminyard@mvista.com> Don't leave a pointer to some external buffer lying around. Signed-off-by: Corey Minyard <cminyard@mvista.com> --- drivers/i2c/busses/i2c-i801.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.7.4
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 00/10] i2c-i801: Various cleanups minyard@acm.org - 2016-05-30 03:20 +0200 [PATCH v2 08/10] i2c-i801: Handle a protocol error in byte-by-byte isr minyard@acm.org - 2016-05-30 03:20 +0200 [PATCH v2 09/10] i2c-i801: Null isr data buffer when done with it minyard@acm.org - 2016-05-30 03:20 +0200 [PATCH v2 04/10] i2c-i801: Consolidate calls to i801_check_pre() minyard@acm.org - 2016-05-30 03:20 +0200 [PATCH v2 06/10] i2c-i801: Pass around a boolean read/write variable minyard@acm.org - 2016-05-30 03:20 +0200 [PATCH v2 05/10] i2c-i801: Consolidate calls to i801_check_post minyard@acm.org - 2016-05-30 03:20 +0200 [PATCH v2 02/10] i2c-i801: Move hostcfg set/reset to i801_access() minyard@acm.org - 2016-05-30 03:20 +0200 [PATCH v2 01/10] i2c-i801: Remove hwpec from block byte-by-byte function minyard@acm.org - 2016-05-30 03:20 +0200
csiph-web