Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ibacm: Fix possible port loop overflow
[ Upstream commit 13d4342 ] When going over all the ports of an IB device and a uint_t8 variable is used a possible overflow can happen if the IB device has 255 ports. Once overflow occurs an invalid port (i.e. 0) is used. Fix by switching to uint32_t. Fixes: a0aaa50 ("ibacm: major rework to align with linux AF_IB changes") Signed-off-by: Mark Bloch <mbloch@nvidia.com> Signed-off-by: Yishai Hadas <yishaih@nvidia.com> Signed-off-by: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
- Loading branch information