]> asedeno.scripts.mit.edu Git - linux.git/commit
RDMA/siw: Add missing rtnl_lock around access to ifa
authorJason Gunthorpe <jgg@mellanox.com>
Thu, 11 Jul 2019 14:29:42 +0000 (11:29 -0300)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 11 Jul 2019 14:29:42 +0000 (11:29 -0300)
commitc421651fa2295d1219c36674c7eb8c574542ceea
treec261298922a54940661793525abac19fe27d1f28
parent775a41e281cf08b1d9e0f2dd89c062430b289a10
RDMA/siw: Add missing rtnl_lock around access to ifa

ifa is protected by rcu or rtnl, add the missing locking. In this case we
have to use rtnl since siw_listen_address() is sleeping.

Fixes: 6c52fdc244b5 ("rdma/siw: connection management")
Reviewed-by: Bernard Metzler <bmt@zurich.ibm.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/sw/siw/siw_cm.c