selinux: fix error codes in cond_read_bool()
authorDan Carpenter <error27@gmail.com>
Sat, 12 Jun 2010 18:56:01 +0000 (20:56 +0200)
committerJames Morris <jmorris@namei.org>
Mon, 2 Aug 2010 05:35:04 +0000 (15:35 +1000)
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 <error27@gmail.com>
Acked-by: Stephen D. Smalley <sds@tycho.nsa.gov>
Signed-off-by: James Morris <jmorris@namei.org>

No differences found