On 16-08-22 01:40 PM, Cong Wang wrote:
On Mon, Aug 22, 2016 at 5:11 AM, Jamal Hadi Salim <j...@mojatatu.com> wrote:
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