浏览代码

SELinux: standardize return code handling in policydb.c

policydb.c has lots of different standards on how to handle return paths on
error.  For the most part transition to

	rc=errno
	if (failure)
		goto out;
[...]
out:
	cleanup()
	return rc;

Instead of doing cleanup mid function, or having multiple returns or other
options.  This doesn't do that for every function, but most of the complex
functions which have cleanup routines on error.

Signed-off-by: Eric Paris <eparis@redhat.com>
Eric Paris 14 年之前
父节点
当前提交
9398c7f794
共有 1 个文件被更改,包括 222 次插入252 次删除
  1. 222 252
      security/selinux/ss/policydb.c

文件差异内容过多而无法显示
+ 222 - 252
security/selinux/ss/policydb.c


部分文件因为文件数量过多而无法显示