Re: [PATCH v2 2/6] iio: magnetometer: mmc35240: NULL terminate attribute array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/06/15 12:03, Daniel Baluta wrote:
> 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@xxxxxxxxx>
Applied to the togreg branch of iio.git
> ---
>  drivers/iio/magnetometer/mmc35240.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/iio/magnetometer/mmc35240.c b/drivers/iio/magnetometer/mmc35240.c
> index 417eca1..9d62c53 100644
> --- 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 = {
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux