]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
RDMA/cma: Add cm_id restrack resource based on kernel or user cm_id type
authorSteve Wise <swise@opengridcomputing.com>
Mon, 7 Jan 2019 19:01:13 +0000 (11:01 -0800)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 9 Jan 2019 00:12:33 +0000 (17:12 -0700)
commit917cb8a72a94d198073ad1e087685f801292042d
tree89ebe1ae459c8aea35bc11e1e5b80cbc8dd021cc
parenta9666c1cae8dbcd1a9aacd08a778bf2a28eea300
RDMA/cma: Add cm_id restrack resource based on kernel or user cm_id type

A recent regression causes a null ptr crash when dumping cm_id resources.
The cma is incorrectly adding all cm_id restrack resources as kernel mode.

Fixes: af8d70375d56 ("RDMA/restrack: Resource-tracker should not use uobject pointers")
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cma.c