Thread (4 messages) 4 messages, 4 authors, 2025-07-02

Re: [PATCH net] lib: test_objagg: Set error message in check_expect_hints_stats()

From: Simon Horman <horms@kernel.org>
Date: 2025-07-01 19:43:25
Also in: kernel-janitors, lkml

On Mon, Jun 30, 2025 at 02:36:40PM -0500, Dan Carpenter wrote:
Smatch complains that the error message isn't set in the caller:

    lib/test_objagg.c:923 test_hints_case2()
    error: uninitialized symbol 'errmsg'.

This static checker warning only showed up after a recent refactoring
but the bug dates back to when the code was originally added.  This
likely doesn't affect anything in real life.

Reported-by: kernel test robot <redacted>
Closes: https://lore.kernel.org/r/202506281403.DsuyHFTZ-lkp@intel.com/ (local)
Fixes: 0a020d416d0a ("lib: introduce initial implementation of object aggregation manager")
Signed-off-by: Dan Carpenter <redacted>
Reviewed-by: Simon Horman <horms@kernel.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help