Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: pressure: bmp280: Fix uninitialized variable

clang found that the "offset" in bmp580_trigger_handler doesn't get
initialized before access. Add proper initialization to this variable.

Signed-off-by: Yo-Jung Lin (Leo) <0xff07@gmail.com>
Link: https://patch.msgid.link/20241011115334.367736-1-0xff07@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Yo-Jung (Leo) Lin and committed by
Jonathan Cameron
f32ea7aa 220c71da

+2
+2
drivers/iio/pressure/bmp280-core.c
··· 2222 2222 goto out; 2223 2223 } 2224 2224 2225 + offset = 0; 2226 + 2225 2227 /* Pressure calculations */ 2226 2228 memcpy(&data->sensor_data[offset], &data->buf[3], 3); 2227 2229