Re: [PATCH next] RDMA/mana_ib: Use safer allocation function()

From: Leon Romanovsky
Date: Sat Mar 08 2025 - 13:34:39 EST



On Thu, 06 Mar 2025 22:49:06 +0300, Dan Carpenter wrote:
> My static checker says this multiplication can overflow. I'm not an
> expert in this code but the call tree would be:
>
> ib_uverbs_handler_UVERBS_METHOD_QP_CREATE() <- reads cap from the user
> -> ib_create_qp_user()
> -> create_qp()
> -> mana_ib_create_qp()
> -> mana_ib_create_ud_qp()
> -> create_shadow_queue()
>
> [...]

Applied, thanks!

[1/1] RDMA/mana_ib: Use safer allocation function()
https://git.kernel.org/rdma/rdma/c/1d5c69514e7428

Best regards,
--
Leon Romanovsky <leon@xxxxxxxxxx>