|WARNING| pw158352 [PATCH] net/netvsc: fix use after free in cache list cleanup
checkpatch at dpdk.org
checkpatch at dpdk.org
Mon Nov 3 17:36:49 CET 2025
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/158352
_coding style issues_
CHECK:MACRO_ARG_REUSE: Macro argument reuse 'var' - possible side-effects?
#112: FILE: drivers/net/netvsc/hn_ethdev.c:45:
+#define LIST_FOREACH_SAFE(var, head, field, tvar) \
+ for ((var) = LIST_FIRST((head)); \
+ (var) && ((tvar) = LIST_NEXT((var), field), 1); \
+ (var) = (tvar))
CHECK:MACRO_ARG_REUSE: Macro argument reuse 'tvar' - possible side-effects?
#112: FILE: drivers/net/netvsc/hn_ethdev.c:45:
+#define LIST_FOREACH_SAFE(var, head, field, tvar) \
+ for ((var) = LIST_FIRST((head)); \
+ (var) && ((tvar) = LIST_NEXT((var), field), 1); \
+ (var) = (tvar))
total: 0 errors, 0 warnings, 2 checks, 29 lines checked
More information about the test-report
mailing list