diff options
| author | Julian Squires <[email protected]> | 2020-07-20 12:20:35 -0230 |
|---|---|---|
| committer | Johannes Berg <[email protected]> | 2020-07-31 09:24:22 +0200 |
| commit | 9c167b2ddc1a89e6f6378e65bfd20e8c0ddf65f1 (patch) | |
| tree | 72096788c66cd02979fcc17c6d031ced960c9de4 /tools/perf/scripts/python | |
| parent | f2a0c18759072dbd5135f72a8035f6fb838df425 (diff) | |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[reword commit message]
Signed-off-by: Johannes Berg <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions