diff options
author | 2018-10-19 13:58:01 +0100 | |
---|---|---|
committer | 2018-11-11 09:18:04 -0800 | |
commit | 8bb0a88600f0267cfcc245d34f8c4abe8c282713 (patch) | |
tree | 51c5d10e28d418b3082847b920035beeed317993 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | nvmem: core: fix regression in of_nvmem_cell_get() (diff) | |
download | wireguard-linux-8bb0a88600f0267cfcc245d34f8c4abe8c282713.tar.xz wireguard-linux-8bb0a88600f0267cfcc245d34f8c4abe8c282713.zip |
test_firmware: fix error return getting clobbered
In the case where eq->fw->size > PAGE_SIZE the error return rc
is being set to EINVAL however this is being overwritten to
rc = req->fw->size because the error exit path via label 'out' is
not being taken. Fix this by adding the jump to the error exit
path 'out'.
Detected by CoverityScan, CID#1453465 ("Unused value")
Fixes: c92316bf8e94 ("test_firmware: add batched firmware tests")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions