aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/sa_query.c
diff options
context:
space:
mode:
authorKaike Wan <kaike.wan@intel.com>2015-08-20 14:20:42 -0400
committerDoug Ledford <dledford@redhat.com>2015-09-02 13:58:54 -0400
commitba13b5f8f86efa78bc0aaea297b0001b6cbf6c21 (patch)
treecf6479df159b926e9e2e3cd91e44d29e3aea806a /drivers/infiniband/core/sa_query.c
parentIB/ucma: HW Device hot-removal support (diff)
downloadlinux-dev-ba13b5f8f86efa78bc0aaea297b0001b6cbf6c21.tar.xz
linux-dev-ba13b5f8f86efa78bc0aaea297b0001b6cbf6c21.zip
IB/sa: Fix rdma netlink message flags
The flags to ibnl_put_msg should be NLM_F_REQUEST instead of GFP_KERNEL. Signed-off-by: Kaike Wan <kaike.wan@intel.com> Signed-off-by: John Fleck <john.fleck@intel.com> Signed-off-by: Ira Weiny <ira.weiny@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/core/sa_query.c')
-rw-r--r--drivers/infiniband/core/sa_query.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/sa_query.c b/drivers/infiniband/core/sa_query.c
index edcf568dab48..8c014b33d8e0 100644
--- a/drivers/infiniband/core/sa_query.c
+++ b/drivers/infiniband/core/sa_query.c
@@ -532,7 +532,7 @@ static int ib_nl_send_msg(struct ib_sa_query *query)
/* Put nlmsg header only for now */
data = ibnl_put_msg(skb, &nlh, query->seq, 0, RDMA_NL_LS,
- RDMA_NL_LS_OP_RESOLVE, (int) GFP_KERNEL);
+ RDMA_NL_LS_OP_RESOLVE, NLM_F_REQUEST);
if (!data) {
kfree_skb(skb);
return -EMSGSIZE;