iio: magnetometer: mmc35240: NULL terminate attribute array
authorDaniel Baluta <daniel.baluta@intel.com>
Fri, 5 Jun 2015 11:03:11 +0000 (14:03 +0300)
committerJonathan Cameron <jic23@kernel.org>
Sun, 7 Jun 2015 15:33:12 +0000 (16:33 +0100)
commitbd35a214f56158d11e46c4a9d8436139f58e7099
treece5d0b5fa679c51d45dfb564dfbd7cdc1e2de154
parenta52ffebcf19afea27588abe75828f9d300e08f3d
iio: magnetometer: mmc35240: NULL terminate attribute array

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
This page took 0.025299 seconds and 5 git commands to generate.