linux-4.2-rc6/fs/afs/server.c:210:Possible null pointer dereference

David Binderman dcb314 at hotmail.com
Tue Aug 11 01:54:58 PDT 2015


hello there,

----------------------------------------
> The "(C) &&" before the "!((X) OP (Y))" is very important. That's the guard.
> If (C) evaluates to false, then the RHS of the && operator won't even be
> evaluated. (C) is just "server". So if server is NULL, the dereference is
> guaranteed not to happen by the C standard.

Thanks for the explanation, I agree with your answer. Sorry for wasting your time.

Regards

David Binderman

 		 	   		  


More information about the linux-afs mailing list