]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/core: Fix return code when modify_device isn't supported
authorKamal Heib <kamalheib1@gmail.com>
Mon, 23 Sep 2019 10:41:56 +0000 (13:41 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 1 Oct 2019 16:06:10 +0000 (13:06 -0300)
commit5d1b7b97e7ae51e8643cec0cecdb14fe5bcfc3c3
tree4d7e4fc9c3ca83c1a88cd22cd3a23fced4260bcc
parentc120d3a2d661f0b738c5061a3d04265a9594e6f2
RDMA/core: Fix return code when modify_device isn't supported

The proper return code is "-EOPNOTSUPP" when modify_device callback is not
supported.

Link: https://lore.kernel.org/r/20190923104158.5331-2-kamalheib1@gmail.com
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/device.c
drivers/infiniband/core/sysfs.c