diff options
author | Colin Ian King | 2018-10-19 13:58:01 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2018-11-11 09:18:04 -0800 |
commit | 8bb0a88600f0267cfcc245d34f8c4abe8c282713 (patch) | |
tree | 51c5d10e28d418b3082847b920035beeed317993 /net/core/pktgen.c | |
parent | 0749aa25af82c690395a96e799cd2c6e54c459cf (diff) |
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 'net/core/pktgen.c')
0 files changed, 0 insertions, 0 deletions