summaryrefslogtreecommitdiffstats
path: root/net/nfc/netlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/nfc/netlink.c')
-rw-r--r--net/nfc/netlink.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/net/nfc/netlink.c b/net/nfc/netlink.c
index f91ce7c82746..c6ba308cede7 100644
--- a/net/nfc/netlink.c
+++ b/net/nfc/netlink.c
@@ -119,9 +119,10 @@ static struct nfc_dev *__get_device_from_cb(struct netlink_callback *cb)
119 int rc; 119 int rc;
120 u32 idx; 120 u32 idx;
121 121
122 rc = nlmsg_parse(cb->nlh, GENL_HDRLEN + nfc_genl_family.hdrsize, 122 rc = nlmsg_parse_deprecated(cb->nlh,
123 attrbuf, nfc_genl_family.maxattr, nfc_genl_policy, 123 GENL_HDRLEN + nfc_genl_family.hdrsize,
124 NULL); 124 attrbuf, nfc_genl_family.maxattr,
125 nfc_genl_policy, NULL);
125 if (rc < 0) 126 if (rc < 0)
126 return ERR_PTR(rc); 127 return ERR_PTR(rc);
127 128
@@ -1177,8 +1178,9 @@ static int nfc_genl_llc_sdreq(struct sk_buff *skb, struct genl_info *info)
1177 tlvs_len = 0; 1178 tlvs_len = 0;
1178 1179
1179 nla_for_each_nested(attr, info->attrs[NFC_ATTR_LLC_SDP], rem) { 1180 nla_for_each_nested(attr, info->attrs[NFC_ATTR_LLC_SDP], rem) {
1180 rc = nla_parse_nested(sdp_attrs, NFC_SDP_ATTR_MAX, attr, 1181 rc = nla_parse_nested_deprecated(sdp_attrs, NFC_SDP_ATTR_MAX,
1181 nfc_sdp_genl_policy, info->extack); 1182 attr, nfc_sdp_genl_policy,
1183 info->extack);
1182 1184
1183 if (rc != 0) { 1185 if (rc != 0) {
1184 rc = -EINVAL; 1186 rc = -EINVAL;