]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
um: vector: fix bpfflash parameter evaluation
authorJohannes Berg <johannes.berg@intel.com>
Thu, 28 Mar 2024 09:06:36 +0000 (10:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jun 2024 11:39:43 +0000 (13:39 +0200)
commit90bfce05a370fcad16ffc992fb71f97b1523ef15
tree645155f49067239cdf02ef0f30ce960bf9e7d9dc
parent31960d991e43c8d6dc07245f19fc13398e90ead2
um: vector: fix bpfflash parameter evaluation

[ Upstream commit 584ed2f76ff5fe360d87a04d17b6520c7999e06b ]

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

Fixes: 9807019a62dc ("um: Loadable BPF "Firmware" for vector drivers")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Reviewed-by: Tiwei Bie <tiwei.btw@antgroup.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/um/drivers/vector_kern.c