diff options
| author | Selvin Xavier <selvin.xavier@broadcom.com> | 2026-06-16 01:47:51 +0300 |
|---|---|---|
| committer | Jason Gunthorpe <jgg@nvidia.com> | 2026-06-16 20:30:40 +0300 |
| commit | 33a215f499b0643cd88a32ab5b8de1547be419c6 (patch) | |
| tree | 5a35ef4d554f838e1191cf4fbbe6c0c869f8676b /include | |
| parent | a57592c6392a8e333c9c2731701297a5a279313a (diff) | |
| download | linux-33a215f499b0643cd88a32ab5b8de1547be419c6.tar.xz | |
RDMA/bnxt_re: Reject GET_TOGGLE_MEM when toggle page was not allocated
If a user calls BNXT_RE_METHOD_GET_TOGGLE_MEM on a device that does not
support the CQ/SRQ toggle feature, uctx_cq_page or uctx_srq_page will
be NULL.
Add an explicit -EOPNOTSUPP return after capturing the address from
uctx_cq_page / uctx_srq_page if the address is zero.
Fixes: e275919d9669 ("RDMA/bnxt_re: Share a page to expose per CQ info with userspace")
Fixes: 181028a0d84c ("RDMA/bnxt_re: Share a page to expose per SRQ info with userspace")
Link: https://patch.msgid.link/r/20260615224751.232802-16-selvin.xavier@broadcom.com
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
