diff options
author | Yuchen Yang <[email protected]> | 2023-05-05 22:12:55 +0800 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2023-05-22 17:31:56 -0400 |
commit | 2e2fe5ac695a00ab03cab4db1f4d6be07168ed9d (patch) | |
tree | 6b14a810f0b7383bd77df89a6fb299ca27de4841 /lib/test_fortify/write_overflow-strlcpy-src.c | |
parent | a1f871f9f30124669d7afbdb8754f0826f49b564 (diff) |
scsi: 3w-xxxx: Add error handling for initialization failure in tw_probe()
Smatch complains that:
tw_probe() warn: missing error code 'retval'
This patch adds error checking to tw_probe() to handle initialization
failure. If tw_reset_sequence() function returns a non-zero value, the
function will return -EINVAL to indicate initialization failure.
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Yuchen Yang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Dan Carpenter <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions