]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/uverbs: Fix post send success return value in case of error
authorGal Pressman <galpress@amazon.com>
Mon, 7 Jan 2019 11:36:56 +0000 (13:36 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 7 Jan 2019 18:42:22 +0000 (11:42 -0700)
commit4c226b7c1ebf35fd94acaaf3060503d2a96a66b7
tree7177dacc04efc35489a6651e928f31a3ab6621f9
parentd6952d4b95d3a6897fcea7446c97f59f8d24556b
RDMA/uverbs: Fix post send success return value in case of error

If get QP object fails 'ret' must be assigned with a proper error code.

Fixes: f9370d988989 ("RDMA/uverbs: Use uverbs_response() for remaining response copying")
Signed-off-by: Gal Pressman <galpress@amazon.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/uverbs_cmd.c