Re: [patch] tomoyo: cleanup. don't store bogus pointer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dan Carpenter wrote:

> If domain is NULL then &domain->list is a bogus address.  Let's leave
> head->r.domain NULL instead of saving an unusable pointer.
> 
> This is just a cleanup.  The current code always checks head->r.eof
> before dereferencing head->r.domain.
> 
> Signed-off-by: Dan Carpenter <error27@xxxxxxxxx>

I see. Thank you.

Acked-by: Tetsuo Handa <penguin-kernel@xxxxxxxxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux