Re: [PATCH] lib/rhashtable: Fix work initialization in rhashtable_init()

From: Bart Van Assche
Date: Thu Dec 20 2018 - 12:51:33 EST


On Tue, 2018-12-18 at 21:32 -0800, David Miller wrote:
+AD4 From: Bart Van Assche +ADw-bvanassche+AEA-acm.org+AD4
+AD4 Date: Mon, 17 Dec 2018 13:40:58 -0800
+AD4
+AD4 +AD4 The test+AF8-insert+AF8-dup() function from lib/test+AF8-rhashtable.c passes a
+AD4 +AD4 pointer to a stack object to rhltable+AF8-init(). Avoid that the following
+AD4 +AD4 is reported with object debugging enabled while running the selftest
+AD4 +AD4 from lib/test+AF8-rhashtable.c:
+AD4 ...
+AD4 +AD4 Signed-off-by: Bart Van Assche +ADw-bvanassche+AEA-acm.org+AD4
+AD4
+AD4 Please just fix the test to use the global object created for this purpose
+AD4 instead of an unnecessary on-stack instance.

Hi Dave,

I will do that. Thanks for the feedback.

Bart.