Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 322681
b: refs/heads/master
c: d1dc9c1
h: refs/heads/master
i:
  322679: e9d80ee
v: v3
  • Loading branch information
Peter Meerwald authored and Jonathan Cameron committed Aug 27, 2012
1 parent 2b761ee commit 78e517c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 50d4b3062d6d4f165c76854a7644b1502836f9b9
refs/heads/master: d1dc9c1276a4d988b29372fe67796430d5cbc756
4 changes: 3 additions & 1 deletion trunk/drivers/staging/iio/accel/lis3l02dq_ring.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,10 @@ static int lis3l02dq_get_buffer_element(struct iio_dev *indio_dev,
if (rx_array == NULL)
return -ENOMEM;
ret = lis3l02dq_read_all(indio_dev, rx_array);
if (ret < 0)
if (ret < 0) {
kfree(rx_array);
return ret;
}
for (i = 0; i < scan_count; i++)
data[i] = combine_8_to_16(rx_array[i*4+1],
rx_array[i*4+3]);
Expand Down

0 comments on commit 78e517c

Please sign in to comment.