]> bbs.cooldavid.org Git - net-next-2.6.git/commit
selinux: fix error codes in symtab_init()
authorDan Carpenter <error27@gmail.com>
Sat, 12 Jun 2010 18:57:39 +0000 (20:57 +0200)
committerJames Morris <jmorris@namei.org>
Mon, 2 Aug 2010 05:35:04 +0000 (15:35 +1000)
commit9a7982793c3aee6ce86d8e7e15306215257329f2
tree4d85f6f7a57260cefd938dca7593aabf9c02a59c
parent338437f6a09861cdf76e1396ed5fa6dee9c7cabe
selinux: fix error codes in symtab_init()

hashtab_create() only returns NULL on allocation failures to -ENOMEM is
appropriate here.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Eric Paris <eparis@redhat.com>
Acked-by: Stephen D. Smalley <sds@tycho.nsa.gov>
Signed-off-by: James Morris <jmorris@namei.org>
security/selinux/ss/symtab.c