diff options
author | Tom Rix <[email protected]> | 2020-08-02 07:23:39 -0700 |
---|---|---|
committer | Stefan Schmidt <[email protected]> | 2020-08-03 20:19:21 +0200 |
commit | e3914ed6cf44bfe1f169e26241f8314556fd1ac1 (patch) | |
tree | 1eaefb94fcd4d9025632522588ad020ef5d8cd76 /lib/test_fortify/write_overflow-strcpy.c | |
parent | 88f46b3fe2ac41c381770ebad9f2ee49346b57a2 (diff) |
ieee802154/adf7242: check status of adf7242_read_reg
Clang static analysis reports this error
adf7242.c:887:6: warning: Assigned value is garbage or undefined
len = len_u8;
^ ~~~~~~
len_u8 is set in
adf7242_read_reg(lp, 0, &len_u8);
When this call fails, len_u8 is not set.
So check the return code.
Fixes: 7302b9d90117 ("ieee802154/adf7242: Driver for ADF7242 MAC IEEE802154")
Signed-off-by: Tom Rix <[email protected]>
Acked-by: Michael Hennerich <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Stefan Schmidt <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strcpy.c')
0 files changed, 0 insertions, 0 deletions