RDMA/cma: Initialize resource type in __rdma_create_id()
authorParav Pandit <parav@mellanox.com>
Sun, 29 Jul 2018 08:53:08 +0000 (11:53 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 31 Jul 2018 02:49:04 +0000 (20:49 -0600)
commite11fef9f8d442e6929dce6c80dacea6466e348b0
tree0e5e326c49593c65c52e446488273b6f647dba74
parentcdfa4ad5d65ececbff24d070f21549db3b4c9cd9
RDMA/cma: Initialize resource type in __rdma_create_id()

Currently rdma_cm_id's resource tracking fields such as owner task and
kern_name and other non resource tracking fields are initialized in
in single function __rdma_create_id().

Therefore, initialize rdma_cm_id's resource type also in same init
function.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cma.c