Loading
RDMA/hns: Fix inappropriate err code for unsupported operations
mainline inclusion from mainline-v6.8-rc1 commit f45b83ad39f8033e717b1eee57e81811113d5a84 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I90X3R CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f45b83ad39f8033e717b1eee57e81811113d5a84 ---------------------------------------------------------------------- EOPNOTSUPP is more situable than EINVAL for allocating XRCD while XRC is not supported and unsupported resizing SRQ. Fixes: 32548870 ("RDMA/hns: Add support for XRC on HIP09") Fixes: 221109e6 ("RDMA/hns: Add interception for resizing SRQs") Signed-off-by:Junxian Huang <huangjunxian6@hisilicon.com> Link: https://lore.kernel.org/r/20231114123449.1106162-2-huangjunxian6@hisilicon.com Signed-off-by:
Leon Romanovsky <leon@kernel.org> Signed-off-by:
Juan Zhou <zhoujuan51@h-partners.com>