diff options
author | Johannes Berg <johannes.berg@intel.com> | 2019-03-29 08:56:22 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-05-02 10:02:49 +0200 |
commit | b5db8ea57de55585027304c1ec30d5542a9360ef (patch) | |
tree | eecac5835195a7859fcb1409e551b1874394c846 /drivers/net/tun.c | |
parent | 16de5d9b8f6be7a5fcb4a7dccd915e955c38e731 (diff) |
mac80211_hwsim: calculate if_combination.max_interfaces
commit 45fcef8b727b6f171bc5443e8153181a367d7a15 upstream.
If we just set this to 2048, and have multiple limits you
can select from, the total number might run over and cause
a warning in cfg80211. This doesn't make sense, so we just
calculate the total max_interfaces now.
Reported-by: syzbot+8f91bd563bbff230d0ee@syzkaller.appspotmail.com
Fixes: 99e3a44bac37 ("mac80211_hwsim: allow setting iftype support")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/tun.c')
0 files changed, 0 insertions, 0 deletions