From: Dan Carpenter Date: Sat, 12 Jun 2010 18:53:46 +0000 (+0200) Subject: selinux: fix error codes in cond_read_node() X-Git-Tag: v2.6.36-rc1~584^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc5c126e4733e6fb3080d3d822ca63226e74fc84;p=pandora-kernel.git selinux: fix error codes in cond_read_node() Originally cond_read_node() returned -1 (-EPERM) on errors which was incorrect. Now it either propagates the error codes from lower level functions next_entry() or cond_read_av_list() or it returns -ENOMEM or -EINVAL. next_entry() returns -EINVAL. cond_read_av_list() returns -EINVAL or -ENOMEM. Signed-off-by: Dan Carpenter Acked-by: Stephen D. Smalley Signed-off-by: James Morris --- Reading git-diff-tree failed