diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-07-12 19:26:33 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-07-12 19:26:33 (GMT) |
commit | fc6ed2c6411e3ee0a3775d6d822f9b0169cc40a2 (patch) | |
tree | 5f7900d05ce0c113641609d8a251ad3487b871a3 /drivers/staging/iio | |
parent | d99b5ac65e7827f10ba60b1ea44d7bd041d58d1d (diff) | |
parent | e59b9afecf7ddf52d31d24e800b473f19c23cfe0 (diff) | |
download | linux-fsl-qoriq-fc6ed2c6411e3ee0a3775d6d822f9b0169cc40a2.tar.xz |
Merge tag 'fixes-togreg-3.6a' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into work-next
Various minor IIO fixes for staging-next.
Diffstat (limited to 'drivers/staging/iio')
-rw-r--r-- | drivers/staging/iio/adc/max1363_ring.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/iio/adc/max1363_ring.c b/drivers/staging/iio/adc/max1363_ring.c index bf6b0c2..774ae1b 100644 --- a/drivers/staging/iio/adc/max1363_ring.c +++ b/drivers/staging/iio/adc/max1363_ring.c @@ -74,7 +74,7 @@ static irqreturn_t max1363_trigger_handler(int irq, void *p) else b_sent = i2c_master_recv(st->client, rxbuf, numvals); if (b_sent < 0) - goto done; + goto done_free; time_ns = iio_get_time_ns(); @@ -82,9 +82,10 @@ static irqreturn_t max1363_trigger_handler(int irq, void *p) memcpy(rxbuf + d_size - sizeof(s64), &time_ns, sizeof(time_ns)); iio_push_to_buffer(indio_dev->buffer, rxbuf, time_ns); +done_free: + kfree(rxbuf); done: iio_trigger_notify_done(indio_dev->trig); - kfree(rxbuf); return IRQ_HANDLED; } |