selinux: Return directly after a failed memory allocation in policydb_index()
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 4 Apr 2017 08:20:46 +0000 (10:20 +0200)
committerPaul Moore <paul@paul-moore.com>
Tue, 23 May 2017 14:23:12 +0000 (10:23 -0400)
commit62934ffb9e5f9a904c83f571590631b766d68d12
treec2b79b000a9e214d48df8e3cbf6844eb6fdb831f
parenta79be238600d1a0319a77b080b762d03c1d253ca
selinux: Return directly after a failed memory allocation in policydb_index()

Replace five goto statements (and previous variable assignments) by
direct returns after a memory allocation failure in this function.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/ss/policydb.c