Thread (6 messages) 6 messages, 3 authors, 2016-08-23

Re: [Patch net-next] net_sched: properly handle failure case of tcf_exts_init()

flat view

From: Jamal Hadi Salim <jhs@mojatatu.com>
Date: 2016-08-22 18:12:18

On 16-08-22 01:40 PM, Cong Wang wrote:
On Mon, Aug 22, 2016 at 5:11 AM, Jamal Hadi Salim [off-list ref] wrote:
quoted

Answered my own question by looking at implementation of kfree();
ignores NULL (unlike free())
Seriously?

Here is what C standard says about free():
I may be confusing it with fact that the kernel kfree() used to not
check for nullness or perhaps a _lot_ of people used to check for the
null pointer before calling kfree().
[At some point a massive patch must have gone in and cleaned that kind
of code up because i cant find evidence of what i am saying ;->]

cheers,
jamal
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help