projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a575041
)
staging:iio:accel:sca3000 Fix a use before setting of the indio_dev->buffer pointer.
author
Jonathan Cameron
<jic23@kernel.org>
Sat, 8 Oct 2016 16:39:01 +0000
(17:39 +0100)
committer
Jonathan Cameron
<jic23@kernel.org>
Sun, 23 Oct 2016 18:33:57 +0000
(19:33 +0100)
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
drivers/staging/iio/accel/sca3000_ring.c
patch
|
blob
|
history
diff --git
a/drivers/staging/iio/accel/sca3000_ring.c
b/drivers/staging/iio/accel/sca3000_ring.c
index d1cb9b9cf22b21ed551f88dcf17f745a0cf23065..e5de52d05a5c7eb6384acd3575d5cdb67bd24928 100644
(file)
--- a/
drivers/staging/iio/accel/sca3000_ring.c
+++ b/
drivers/staging/iio/accel/sca3000_ring.c
@@
-270,8
+270,8
@@
int sca3000_configure_ring(struct iio_dev *indio_dev)
return -ENOMEM;
indio_dev->modes |= INDIO_BUFFER_HARDWARE;
- indio_dev->buffer->access = &sca3000_ring_access_funcs;
+ buffer->access = &sca3000_ring_access_funcs;
iio_device_attach_buffer(indio_dev, buffer);
return 0;