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: Cong Wang <hidden>
Date: 2016-08-22 17:41:11

On Mon, Aug 22, 2016 at 5:11 AM, Jamal Hadi Salim [off-list ref] wrote:

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

Here is what C standard says about free():

The free function causes the space pointed to by ptr to be
deallocated, that is, made available for further allocation. If ptr is
a null pointer, no action occurs.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help