Commit 584ed2f7 authored by Johannes Berg's avatar Johannes Berg Committed by Richard Weinberger

um: vector: fix bpfflash parameter evaluation

With W=1 the build complains about a pointer compared to
zero, clearly the result should've been compared.

Fixes: 9807019a ("um: Loadable BPF "Firmware" for vector drivers")
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Reviewed-by: default avatarTiwei Bie <tiwei.btw@antgroup.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent e3cce8d8
......@@ -141,7 +141,7 @@ static bool get_bpf_flash(struct arglist *def)
if (allow != NULL) {
if (kstrtoul(allow, 10, &result) == 0)
return (allow > 0);
return result > 0;
}
return false;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment