Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 317822
b: refs/heads/master
c: b82ed7d
h: refs/heads/master
v: v3
  • Loading branch information
Lars-Peter Clausen authored and Jonathan Cameron committed Jul 8, 2012
1 parent 31712df commit 349c5d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 67bd5e26d44a5282d46719325b25deedebc39b2e
refs/heads/master: b82ed7d6805ef2a31503999edc80787083d4426f
5 changes: 3 additions & 2 deletions trunk/drivers/staging/iio/gyro/adis16260_ring.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ static irqreturn_t adis16260_trigger_handler(int irq, void *p)
data = kmalloc(indio_dev->scan_bytes, GFP_KERNEL);
if (data == NULL) {
dev_err(&st->us->dev, "memory alloc failed in ring bh");
return -ENOMEM;
goto done;
}

if (!bitmap_empty(indio_dev->active_scan_mask, indio_dev->masklength) &&
Expand All @@ -84,8 +84,9 @@ static irqreturn_t adis16260_trigger_handler(int irq, void *p)

ring->access->store_to(ring, (u8 *)data, pf->timestamp);

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

return IRQ_HANDLED;
}
Expand Down

0 comments on commit 349c5d3

Please sign in to comment.