assert macro to check null

Saket Sinha saket.sinha89 at gmail.com
Sat Aug 10 00:28:10 EDT 2013


I have developed a driver which has become unstable. Now when I debug,I
find that it is crashing at
http://lxr.free-electrons.com/source/kernel/cred.c?v=3.8#L431
get_cred(new); where null is struct cred *new.

I think this new might be NULL.

Now I plan to add an assert in our macro that deals with creds, like for
asserting passed object isn't NULL.

Any suggestions as to how I can do that?

Regards,
Saket Sinha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130810/e2788b2f/attachment.html 


More information about the Kernelnewbies mailing list