summaryrefslogtreecommitdiff
path: root/samples/v4l
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2024-02-23 09:29:39 -0800
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2024-02-25 12:11:31 +0000
commita1c9f508db2543aae59ea2378b07a026f6c917cf (patch)
tree4d2310dc09591f5b39c0ce03dd964088239051ba /samples/v4l
parentdaec424cc57b33a28f8621eb7ac85f8bd327bd6b (diff)
iio: pressure: dlhl60d: Initialize empty DLH bytes
3 bytes were being read but 4 were being written. Explicitly initialize the unused bytes to 0 and refactor the loop to use direct array indexing, which appears to silence a Clang false positive warning[1]. Indent improvement included for readability of the fixed code. Link: https://github.com/ClangBuiltLinux/linux/issues/2000 [1] Fixes: ac78c6aa4a5d ("iio: pressure: Add driver for DLH pressure sensors") Signed-off-by: Kees Cook <keescook@chromium.org> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20240223172936.it.875-kees@kernel.org Cc: <Stable@vger.kerenl.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'samples/v4l')
0 files changed, 0 insertions, 0 deletions