diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-10-19 14:58:01 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-11-11 18:18:04 +0100 |
commit | 8bb0a88600f0267cfcc245d34f8c4abe8c282713 (patch) | |
tree | 51c5d10e28d418b3082847b920035beeed317993 /drivers | |
parent | nvmem: core: fix regression in of_nvmem_cell_get() (diff) | |
download | linux-8bb0a88600f0267cfcc245d34f8c4abe8c282713.tar.xz 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 'drivers')
0 files changed, 0 insertions, 0 deletions