Re: [PATCH] net/mana: prevent values overflow returned from RDMA layer

2024-01-22 Thread Ferruh Yigit
On 1/18/2024 6:05 PM, lon...@linuxonhyperv.com wrote: > From: Long Li > > 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

[PATCH] net/mana: prevent values overflow returned from RDMA layer

2024-01-18 Thread longli
From: Long Li 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: 517ed6e2d590 ("net/mana: add basic driver with build environment") Cc: sta...