]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
cfg80211: pmsr: record netlink port ID
authorJohannes Berg <johannes.berg@intel.com>
Wed, 6 Feb 2019 11:17:07 +0000 (13:17 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 11 Feb 2019 14:50:56 +0000 (15:50 +0100)
Without recording the netlink port ID, we cannot return the
results or complete messages to userspace, nor will we be
able to abort if the socket is closed, so clearly we need
to fill the value.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/pmsr.c

index 78c3f56336923298248bd5176955f7a73a16f08f..0216ab555249857daac7990886d832c0acd94856 100644 (file)
@@ -271,6 +271,7 @@ int nl80211_pmsr_start(struct sk_buff *skb, struct genl_info *info)
 
        req->n_peers = count;
        req->cookie = cfg80211_assign_cookie(rdev);
+       req->nl_portid = info->snd_portid;
 
        err = rdev_start_pmsr(rdev, wdev, req);
        if (err)