mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
e1c30298cc
commit
ba13b5f8f8
|
@ -532,7 +532,7 @@ static int ib_nl_send_msg(struct ib_sa_query *query)
|
||||||
|
|
||||||
/* Put nlmsg header only for now */
|
/* Put nlmsg header only for now */
|
||||||
data = ibnl_put_msg(skb, &nlh, query->seq, 0, RDMA_NL_LS,
|
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) {
|
if (!data) {
|
||||||
kfree_skb(skb);
|
kfree_skb(skb);
|
||||||
return -EMSGSIZE;
|
return -EMSGSIZE;
|
||||||
|
|
Loading…
Reference in New Issue