summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorSelvin Xavier <selvin.xavier@broadcom.com>2026-06-16 01:47:51 +0300
committerJason Gunthorpe <jgg@nvidia.com>2026-06-16 20:30:40 +0300
commit33a215f499b0643cd88a32ab5b8de1547be419c6 (patch)
tree5a35ef4d554f838e1191cf4fbbe6c0c869f8676b /include/linux/debugobjects.h
parenta57592c6392a8e333c9c2731701297a5a279313a (diff)
downloadlinux-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/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions