On Wed, Jul 27, 2022 at 02:26:43PM +0200, Christoph Lameter wrote: > On Wed, 27 Jul 2022, Leon Romanovsky wrote: > > > Please no BUG_ON() in new code. > > Do we now prefer NULL pointer dereferences causing bugs? There are two possible scenarios. 1. "NULL can be in this flow." - In such case, the code should deal with such flow and do not crash whole machine. 2. "NULL can't be in this flow." - Put WARN_ON() which serves as a documentation/debug help to catch situations that are not possible. Thanks >