diff options
author | 2022-03-23 09:59:26 +0100 | |
---|---|---|
committer | 2022-03-23 09:59:26 +0100 | |
commit | 412370414c3c7cfe504e2af1d8c98d7a912e6c9a (patch) | |
tree | 0387b3a65ee385f18a0705f6db59f9768d413336 /net/tipc/monitor.c | |
parent | Merge branch 'for-5.18/amd-sfh' into for-linus (diff) | |
parent | HID: apple: properly reflect LEDS dependency (diff) | |
download | wireguard-linux-412370414c3c7cfe504e2af1d8c98d7a912e6c9a.tar.xz wireguard-linux-412370414c3c7cfe504e2af1d8c98d7a912e6c9a.zip |
Merge branch 'for-5.18/apple' into for-linus
- Apple magic keyboard support improvements for newer models (José Expósito)
- Apple T2 Macs support improvements (Aun-Ali Zaidi, Paul Pawlowski)
Diffstat (limited to 'net/tipc/monitor.c')
-rw-r--r-- | net/tipc/monitor.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/tipc/monitor.c b/net/tipc/monitor.c index 407619697292..2f4d23238a7e 100644 --- a/net/tipc/monitor.c +++ b/net/tipc/monitor.c @@ -496,6 +496,8 @@ void tipc_mon_rcv(struct net *net, void *data, u16 dlen, u32 addr, state->probing = false; /* Sanity check received domain record */ + if (new_member_cnt > MAX_MON_DOMAIN) + return; if (dlen < dom_rec_len(arrv_dom, 0)) return; if (dlen != dom_rec_len(arrv_dom, new_member_cnt)) |