diff options
| author | Qianfeng Rong <rongqianfeng@vivo.com> | 2025-08-17 17:15:56 +0800 |
|---|---|---|
| committer | Florian Westphal <fw@strlen.de> | 2025-09-02 15:28:17 +0200 |
| commit | 46015e6b3ea75297b28d4806564f3f692cf11861 (patch) | |
| tree | 02ff6f7c59af898961fccee462df6802f03cb92d /scripts/gdb/linux/vmalloc.py | |
| parent | cd8a4cfa6bb43a441901e82f5c222dddc75a18a3 (diff) | |
netfilter: ebtables: Use vmalloc_array() to improve code
Remove array_size() calls and replace vmalloc() with vmalloc_array() to
simplify the code. vmalloc_array() is also optimized better, uses fewer
instructions, and handles overflow more concisely[1].
[1]: https://lore.kernel.org/lkml/abc66ec5-85a4-47e1-9759-2f60ab111971@vivo.com/
Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'scripts/gdb/linux/vmalloc.py')
0 files changed, 0 insertions, 0 deletions
