diff options
author | 2021-05-14 16:13:00 +0800 | |
---|---|---|
committer | 2021-06-18 23:01:03 -0400 | |
commit | d6c2ce435ffe23ef7f395ae76ec747414589db46 (patch) | |
tree | 683e7a63b1746082e1803ec1e8ca24b5b1ae92dc /tools/perf/scripts/python/export-to-postgresql.py | |
parent | scsi: mpt3sas: Fix Coverity reported issue (diff) | |
download | linux-dev-d6c2ce435ffe23ef7f395ae76ec747414589db46.tar.xz linux-dev-d6c2ce435ffe23ef7f395ae76ec747414589db46.zip |
scsi: mpt3sas: Fix error return value in _scsih_expander_add()
When an expander does not contain any 'phys', an appropriate error code -1
should be returned, as done elsewhere in this function. However, we
currently do not explicitly assign this error code to 'rc'. As a result, 0
was incorrectly returned.
Link: https://lore.kernel.org/r/20210514081300.6650-1-thunder.leizhen@huawei.com
Fixes: f92363d12359 ("[SCSI] mpt3sas: add new driver supporting 12GB SAS")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions