projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a52ffeb
)
iio: magnetometer: mmc35240: NULL terminate attribute array
author
Daniel Baluta
<daniel.baluta@intel.com>
Fri, 5 Jun 2015 11:03:11 +0000
(14:03 +0300)
committer
Jonathan Cameron
<jic23@kernel.org>
Sun, 7 Jun 2015 15:33:12 +0000
(16:33 +0100)
This avoid nasty crashes when registering the IIO device.
Fixes: abeb6b1e7b ("iio: magnetometer: Add support for MEMSIC MMC35240")
Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/magnetometer/mmc35240.c
patch
|
blob
|
history
diff --git
a/drivers/iio/magnetometer/mmc35240.c
b/drivers/iio/magnetometer/mmc35240.c
index d8cf5a6f929111a045d5c958705c61aecfc2de68..78da0d15c8ebbc915ca6b19c20c1f39a2add0633 100644
(file)
--- a/
drivers/iio/magnetometer/mmc35240.c
+++ b/
drivers/iio/magnetometer/mmc35240.c
@@
-125,6
+125,7
@@
static const struct iio_chan_spec mmc35240_channels[] = {
static struct attribute *mmc35240_attributes[] = {
&iio_const_attr_sampling_frequency_available.dev_attr.attr,
+ NULL
};
static const struct attribute_group mmc35240_attribute_group = {