IB/iser: Move fastreg descriptor allocation to iser_create_fastreg_desc
authorSagi Grimberg <sagig@mellanox.com>
Thu, 6 Aug 2015 15:32:57 +0000 (18:32 +0300)
committerDoug Ledford <dledford@redhat.com>
Sun, 30 Aug 2015 22:12:30 +0000 (18:12 -0400)
commiteb6ea8c36c90f022dd9603530286e0707a9c467b
tree63f5f88440450cfa93ad9c57a016f6dfd84357c6
parent48afbff673d3d2ff6c52342574392db504dae301
IB/iser: Move fastreg descriptor allocation to iser_create_fastreg_desc

Don't have the caller allocate the structure and worry about
freeing it in case the routine failed.

This patch does not change any functionality.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Adir Lev <adirl@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/iser/iser_verbs.c