Re: [PATCH] kref: Avoid null pointer dereference after WARN

From: Peter Zijlstra
Date: Wed Jul 05 2017 - 11:37:45 EST


On Tue, Jun 27, 2017 at 09:06:26AM +0200, Greg Kroah-Hartman wrote:
>
> I remember one complaint was that WARN_ON was "huge" and this bloated
> the kernel code a lot. But then that got fixed up. Is BUG_ON going to
> cause the same complaint again?

BUG_ON and WARN_ON should be of equal (small) size.