summaryrefslogtreecommitdiffstats
path: root/virt/Makefile
diff options
context:
space:
mode:
authorXiang Yang <xiangyang3@huawei.com>2023-08-04 10:25:25 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-09-23 10:48:08 +0200
commit39423a1f1ac0c163f65b42cc51ae18bd9db442f4 (patch)
tree7cbdcf03c8bcd5bb61ef9d1fe1bd229e5e9e8825 /virt/Makefile
parentd8ff73e44d10a87d7f2edbe2f7578247debfb7b5 (diff)
downloadlinux-stable-39423a1f1ac0c163f65b42cc51ae18bd9db442f4.tar.gz
linux-stable-39423a1f1ac0c163f65b42cc51ae18bd9db442f4.tar.bz2
linux-stable-39423a1f1ac0c163f65b42cc51ae18bd9db442f4.zip
IB/uverbs: Fix an potential error pointer dereference
[ Upstream commit 26b7d1a27167e7adf75b150755e05d2bc123ce55 ] smatch reports the warning below: drivers/infiniband/core/uverbs_std_types_counters.c:110 ib_uverbs_handler_UVERBS_METHOD_COUNTERS_READ() error: 'uattr' dereferencing possible ERR_PTR() The return value of uattr maybe ERR_PTR(-ENOENT), fix this by checking the value of uattr before using it. Fixes: ebb6796bd397 ("IB/uverbs: Add read counters support") Signed-off-by: Xiang Yang <xiangyang3@huawei.com> Link: https://lore.kernel.org/r/20230804022525.1916766-1-xiangyang3@huawei.com Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'virt/Makefile')
0 files changed, 0 insertions, 0 deletions