OSDN Git Service

net/core/neighbour: fix kmemleak minimal reference count for hash tables
authorKonstantin Khlebnikov <khlebnikov@yandex-team.ru>
Mon, 14 Jan 2019 10:38:43 +0000 (13:38 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Dec 2019 21:26:19 +0000 (22:26 +0100)
commit3da92d1896a7ee3f6ebd82843f8fc95a431b3158
treef172d4b67e81c6bcae3ad2e0aa602263c9106294
parente307ea1bfa87dbce6a0dc3587c10836653d1244b
net/core/neighbour: fix kmemleak minimal reference count for hash tables

[ Upstream commit 01b833ab44c9e484060aad72267fc7e71beb559b ]

This should be 1 for normal allocations, 0 disables leak reporting.

Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Reported-by: Cong Wang <xiyou.wangcong@gmail.com>
Fixes: 85704cb8dcfd ("net/core/neighbour: tell kmemleak about hash tables")
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/core/neighbour.c