-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/mana: prevent values overflow returned from RDMA layer
[ upstream commit b7e79896c47e9b884eaed1bac439f84250fd959f ] The device capabilities reported from RDMA layer are in int. Those values can overflow with the data types defined in dev_info_get(). Fix this by doing a upper bound before returning those values. Fixes: 517ed6e ("net/mana: add basic driver with build environment") Signed-off-by: Long Li <longli@microsoft.com>
- Loading branch information
1 parent
ef5454b
commit d327329
Showing
1 changed file
with
14 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters