Re: [PATCH] RDMA/mlx5: Signedness bug in UVERBS_HANDLER()

Jason Gunthorpe
2018-12-22T23:09:18Z

On Sat, Dec 22, 2018 at 10:43:32AM +0300, Dan Carpenter wrote:
> The "num_actions" variable needs to be signed for the error handling to
> work. The maximum number of actions is less than 256 so int type is
> large enough for that.
>
> Fixes: cbfdd442c43e ("IB/uverbs: Add helper to get array size from ptr attribute")
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
> Acked-by: Leon Romanovsky <leonro@mellanox.com>
> ---
> drivers/infiniband/hw/mlx5/flow.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to for-next

Thanks,
Jason