Re: [PATCH net] lib: test_objagg: Set error message in check_expect_hints_stats()
From: Simon Horman
Date: Tue Jul 01 2025 - 15:43:35 EST
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 <lkp@xxxxxxxxx>
> Closes: https://lore.kernel.org/r/202506281403.DsuyHFTZ-lkp@xxxxxxxxx/
> Fixes: 0a020d416d0a ("lib: introduce initial implementation of object aggregation manager")
> Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
Reviewed-by: Simon Horman <horms@xxxxxxxxxx>