]> asedeno.scripts.mit.edu Git - linux.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)
commitd0f3ef36bf49bbc7de04da0d7f65ef95749b8b30
tree4d7e4fc9c3ca83c1a88cd22cd3a23fced4260bcc
parent050dbddf249eee3e936b5734c30b2e1b427efdc3
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