]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
IB/isert: fix error return code in isert_alloc_login_buf()
authorWei Yongjun <weiyj.lk@gmail.com>
Sun, 7 Aug 2016 12:20:38 +0000 (12:20 +0000)
committerDoug Ledford <dledford@redhat.com>
Mon, 22 Aug 2016 18:26:55 +0000 (14:26 -0400)
commit1d5840c971455ad4ecece3f72012961cac8d0f00
tree2174be4fb8ce8c0be9ed45759469dbd274c42048
parent23d70503ee187819a3775c7ac73f17c5bfe3fad0
IB/isert: fix error return code in isert_alloc_login_buf()

Fix to return error code -ENOMEM from the alloc error handling
case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Acked-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/isert/ib_isert.c