Re: [PATCH] rdma: infiniband: Added __alloc_cq request value Return value non-zero value determination

From: Jason Gunthorpe

Date: Thu May 28 2026 - 09:09:48 EST


On Thu, May 28, 2026 at 02:54:35PM +0800, luoqing wrote:

> Although this is fundamentally a driver registration issue (drivers
> should specify correct sizes), adding an extra defensive check in
> __ib_alloc_cq() — like ZERO_OR_NULL_PTR(cq) — would:

Then check the driver specified the right sizes when it registered.

But I don't see much value in this avenue, drivers won't work at all
if they are so severely buggy.

This entire conversation is pure AI slop, please stop.

Jason