On Sat, 10 Aug 2013 09:58:10 +0530, Saket Sinha said:

> 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?

        WARN_ON(!new);

is probably your best bet.

Attachment: pgp12wQLYCQM9.pgp
Description: PGP signature

_______________________________________________
Kernelnewbies mailing list
[email protected]
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to