diff options
author | RubenKelevra <rubenkelevra@gmail.com> | 2025-06-26 22:59:07 +0200 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2025-07-01 12:55:49 +0200 |
commit | 21deb2d966920f0d4dd098ca6c3a55efbc0b2f23 (patch) | |
tree | 78aea4e2d0115a7a52cad9900dfe70d789aa42bf /net/lapb/lapb_in.c | |
parent | 8b79380dfe3c3fb143eba69e6cca36a88606a041 (diff) |
net: ieee8021q: fix insufficient table-size assertion
_Static_assert(ARRAY_SIZE(map) != IEEE8021Q_TT_MAX - 1) rejects only a
length of 7 and allows any other mismatch. Replace it with a strict
equality test via a helper macro so that every mapping table must have
exactly IEEE8021Q_TT_MAX (8) entries.
Signed-off-by: RubenKelevra <rubenkelevra@gmail.com>
Link: https://patch.msgid.link/20250626205907.1566384-1-rubenkelevra@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions