On Thu, Dec 17, 2009 at 10:15:43PM +0800, Liuweni wrote: > In this function, the parameter of acl will be called by FOREACH_ACL_ENTRY(macro) > without null point check. I add a null point check to it. All the callers of posix_acl_valid() currently check for acl being a null pointer themselves. Moving the check to posix_acl_valid() certainly seems like a good idea to me, but you need to delete the check from all the callers. Further, it seems like many of the callers might have a PTR_ERR value for 'acl', so you should also move this check into posix_acl_valid(). -- Matthew Wilcox Intel Open Source Technology Centre "Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step." -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html