diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2018-01-27 11:55:10 +0100 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2018-02-19 19:38:51 +0100 |
commit | 584bfe635481d9b2b7f181b05a84d6cfdce79ee7 (patch) | |
tree | f0385138ccb9beb8f27875466a1f463bd477b34f /arch/x86/um/stub_segv.c | |
parent | um: vector: Fix a memory allocation check (diff) | |
download | linux-584bfe635481d9b2b7f181b05a84d6cfdce79ee7.tar.xz linux-584bfe635481d9b2b7f181b05a84d6cfdce79ee7.zip |
um: vector: Fix an error handling path in 'vector_parse()'
If 'find_device()' finds something, we set '*error_out' and we should
return an error. However, 'err' is known to be 0 at this point.
Explicitly return -EINVAL instead.
While at it, remove the initialization of 'err' at the beginning of the
function and also explicitly return an error code if the first check
fails.
Fixes: ad1f62ab2bd4 ("High Performance UML Vector Network Driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/x86/um/stub_segv.c')
0 files changed, 0 insertions, 0 deletions