From: Dan Carpenter Date: Sat, 12 Jun 2010 18:56:01 +0000 (+0200) Subject: selinux: fix error codes in cond_read_bool() X-Git-Tag: v2.6.36-rc1~584^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=338437f6a09861cdf76e1396ed5fa6dee9c7cabe;p=pandora-kernel.git selinux: fix error codes in cond_read_bool() The original code always returned -1 (-EPERM) on error. The new code returns either -ENOMEM, or -EINVAL or it propagates the error codes from lower level functions next_entry() or hashtab_insert(). next_entry() returns -EINVAL. hashtab_insert() returns -EINVAL, -EEXIST, or -ENOMEM. Signed-off-by: Dan Carpenter Acked-by: Stephen D. Smalley Signed-off-by: James Morris --- Reading git-diff-tree failed