Re: [PATCH] lib/rhashtable: Fix work initialization in rhashtable_init()
From: David Miller
Date: Wed Dec 19 2018 - 00:33:04 EST
From: Bart Van Assche <bvanassche@xxxxxxx>
Date: Mon, 17 Dec 2018 13:40:58 -0800
> The test_insert_dup() function from lib/test_rhashtable.c passes a
> pointer to a stack object to rhltable_init(). Avoid that the following
> is reported with object debugging enabled while running the selftest
> from lib/test_rhashtable.c:
...
> Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx>
Please just fix the test to use the global object created for this purpose
instead of an unnecessary on-stack instance.
Thanks.