aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-memcpy.c
diff options
context:
space:
mode:
authorJavier Carrasco <[email protected]>2023-12-01 10:48:03 +0100
committerJonathan Cameron <[email protected]>2023-12-04 13:51:45 +0000
commit85ac6d92fdfd6097a16d9c61363fe1d0272c1604 (patch)
tree4a2bbc4045304f0fe41b24675897b7f057b0873a /lib/test_fortify/write_overflow-memcpy.c
parent59b75dcb0953813676b5030877f3f37cedaed87d (diff)
iio: adc: MCP3564: fix calib_bias and calib_scale range checks
The current implementation uses the AND (&&) operator to check if the value to write for IIO_CHAN_INFO_CALIBBIAS and IIO_CHAN_INFO_CALIBSCALE is within the valid ranges. The evaluated values are the lower and upper limits of the ranges, so this operation always evaluates to false. The OR (||) operator must be used instead. Signed-off-by: Javier Carrasco <[email protected]> Reviewed-by: Marius Cristea <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions