]> git.baikalelectronics.ru Git - kernel.git/commit
xprtrdma: Fix error code in rpcrdma_buffer_create()
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 5 Jan 2019 13:06:07 +0000 (16:06 +0300)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 8 Jan 2019 17:06:17 +0000 (12:06 -0500)
commit6faacf35a370cb0945e46408e9bded9ac0b993ae
treea363833b0a38271c8dda449e8cfc381bf7c05e8e
parentf9bb4b753eb00c02014e4467a28609f4f6ac7f88
xprtrdma: Fix error code in rpcrdma_buffer_create()

This should return -ENOMEM if __alloc_workqueue_key() fails, but it
returns success.

Fixes: 38cf6d4cdc18 ("xprtrdma: Replace rpcrdma_receive_wq with a per-xprt workqueue")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/verbs.c