Re: [PATCH net] rhashtable: fix crash due to mm api change

From
Florian Westphal <fw@strlen.de>
Date
2022-09-26 10:46:20
Also in
kvm, lkml
Reply to
Herbert Xu, 2022-09-26
Herbert Xu [off-list ref] wrote:
Only in the case of kvzalloc.  We expect kzalloc to fail, that's
why it gets NOWARN.  There is no sane reason for kvzalloc to fail
so it should warn.
To me a WARN() only has one purpose:
It will get reported to mailing list and a developer can use that
to develop a patch/fix.

In memory allocation failure, there is no bug, so nothing to fix,
so WARN is useless.
Thread (15 messages) 15 messages, 4 authors, last reply 2022-09-29
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help