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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}