Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 253342
b: refs/heads/master
c: 53aebb5
h: refs/heads/master
v: v3
  • Loading branch information
Andre Bartke authored and Greg Kroah-Hartman committed Jun 7, 2011
1 parent d09bb1c commit 984ddce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0d422f4237ce515678ebbb8781881e5d2e58b9d4
refs/heads/master: 53aebb5312c797e4b63fb50473a55ed054b3cb2f
10 changes: 7 additions & 3 deletions trunk/drivers/staging/iio/imu/adis16400_ring.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,13 @@ static irqreturn_t adis16400_trigger_handler(int irq, void *p)
if (st->variant->flags & ADIS16400_NO_BURST) {
ret = adis16350_spi_read_all(&indio_dev->dev, st->rx);
if (ret < 0)
return ret;
goto err;
for (; i < ring->scan_count; i++)
data[i] = *(s16 *)(st->rx + i*2);
} else {
ret = adis16400_spi_read_burst(&indio_dev->dev, st->rx);
if (ret < 0)
return ret;
goto err;
for (; i < indio_dev->ring->scan_count; i++) {
j = __ffs(mask);
mask &= ~(1 << j);
Expand All @@ -158,9 +158,13 @@ static irqreturn_t adis16400_trigger_handler(int irq, void *p)
ring->access->store_to(indio_dev->ring, (u8 *) data, pf->timestamp);

iio_trigger_notify_done(indio_dev->trig);
kfree(data);

kfree(data);
return IRQ_HANDLED;

err:
kfree(data);
return ret;
}

void adis16400_unconfigure_ring(struct iio_dev *indio_dev)
Expand Down

0 comments on commit 984ddce

Please sign in to comment.