driver: sensor: veml6031 fix untrusted value/array index
Coverity reported potential use of untrusted values / array index. Add
appropriate checks and error reporting when using data->div4, data->gain
and data->itim as value/index.
CID: 516222
CID: 516228
CID: 516248
CID: 516254
Signed-off-by:
Loic Domaigne <tech@domaigne.com>
Loading
Please sign in to comment