alistair23-linux/net/wireless
Julian Squires 9c167b2ddc cfg80211: allow vendor dumpit to terminate by returning 0
nl80211 vendor netlink dumpit, like netlink_callback->dump, should
signal successful completion by returning 0.

Currently, that will just cause dumpit to be called again, possibly
many times until an error occurs.  Since skb->len is never going to be
0 by the time dumpit is called, the only way for dumpit to signal
completion is by returning an error.  If it returns a positive value,
the current message is cancelled, but that positive value is returned
and nl80211_vendor_cmd_dump gets called again.

Fix that by passing a return value of 0 through.

Signed-off-by: Julian Squires <julian@cipht.net>
Link: https://lore.kernel.org/r/20200720145033.401307-1-julian@cipht.net
[reword commit message]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2020-07-31 09:24:22 +02:00
..
certs
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
ap.c
chan.c nl80211: S1G band and channel definitions 2020-07-31 09:24:13 +02:00
core.c nl80211: S1G band and channel definitions 2020-07-31 09:24:13 +02:00
core.h cfg80211: fix management registrations deadlock 2020-06-05 09:22:00 +02:00
debugfs.c
debugfs.h
ethtool.c cfg80211: check wiphy driver existence for drvinfo report 2020-02-07 12:53:26 +01:00
ibss.c
Kconfig Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-06-13 16:27:13 -07:00
lib80211.c
lib80211_crypt_ccmp.c
lib80211_crypt_tkip.c
lib80211_crypt_wep.c
Makefile
mesh.c
mlme.c cfg80211: fix management registrations deadlock 2020-06-05 09:22:00 +02:00
nl80211.c cfg80211: allow vendor dumpit to terminate by returning 0 2020-07-31 09:24:22 +02:00
nl80211.h nl80211: link recursive netlink nested policy 2020-04-30 17:51:41 -07:00
ocb.c
of.c
pmsr.c nl80211: link recursive netlink nested policy 2020-04-30 17:51:41 -07:00
radiotap.c docs: networking: convert radiotap-headers.txt to ReST 2020-04-30 12:56:37 -07:00
rdev-ops.h nl80211: add ability to report TX status for control port TX 2020-05-27 10:02:04 +02:00
reg.c net: wireless: kerneldoc fixes 2020-07-13 17:20:40 -07:00
reg.h
scan.c cfg80211: express channels with a KHz component 2020-04-24 12:33:43 +02:00
sme.c nl80211: really allow client-only BIGTK support 2020-05-31 11:26:05 +02:00
sysfs.c
sysfs.h
trace.c
trace.h nl80211: add ability to report TX status for control port TX 2020-05-27 10:02:04 +02:00
util.c nl80211: S1G band and channel definitions 2020-07-31 09:24:13 +02:00
wext-compat.c net: wireless: kerneldoc fixes 2020-07-13 17:20:40 -07:00
wext-compat.h
wext-core.c wireless: wext: avoid gcc -O3 warning 2020-01-15 09:52:20 +01:00
wext-priv.c
wext-proc.c
wext-sme.c
wext-spy.c