Messages in this thread | | | From | Leon Romanovsky <> | Subject | Re: [PATCH] bnxt_re: avoid shift undefined behavior in bnxt_qplib_alloc_init_hwq | Date | Thu, 09 May 2024 11:59:53 +0300 |
| |
On Tue, 07 May 2024 12:39:28 +0200, Michal Schmidt wrote: > Undefined behavior is triggered when bnxt_qplib_alloc_init_hwq is called > with hwq_attr->aux_depth != 0 and hwq_attr->aux_stride == 0. > In that case, "roundup_pow_of_two(hwq_attr->aux_stride)" gets called. > roundup_pow_of_two is documented as undefined for 0. > > Fix it in the one caller that had this combination. > > [...]
Applied, thanks!
[1/1] bnxt_re: avoid shift undefined behavior in bnxt_qplib_alloc_init_hwq https://git.kernel.org/rdma/rdma/c/78cfd17142ef70
Best regards, -- Leon Romanovsky <leon@kernel.org>
| |