Loading
IB/mlx4: Use port iterator and validation APIs
mainline inclusion from mainline-v5.12-rc1 commit 6504c772 category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/I9R4GV CVE: CVE-2021-47265 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6504c772551e809b4cc21fa720d6bba703d5c199 -------------------------------- Use IB core provided routine to check if the port is valid or not and to iterate over IB ports. Link: https://lore.kernel.org/r/20210127150010.1876121-10-leon@kernel.org Signed-off-by:Parav Pandit <parav@nvidia.com> Signed-off-by:
Leon Romanovsky <leonro@nvidia.com> Signed-off-by:
Jason Gunthorpe <jgg@nvidia.com> Signed-off-by:
Zhengchao Shao <shaozhengchao@huawei.com>