]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
NetLabel: better error handling involving mls_export_cat()
authorPaul Moore <paul.moore@hp.com>
Wed, 11 Oct 2006 23:10:48 +0000 (19:10 -0400)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 16 Oct 2006 06:14:15 +0000 (23:14 -0700)
commitbf0edf39296097f20c5fcc4919ed7d339194bd75
tree0cde65c275cd7bab51c306cde3bf80487655f6ba
parent044a68ed8a692f643cf3c0a54c380a922584f34f
NetLabel: better error handling involving mls_export_cat()

Upon inspection it looked like the error handling for mls_export_cat() was
rather poor.  This patch addresses this by NULL'ing out kfree()'d pointers
before returning and checking the return value of the function everywhere
it is called.

Signed-off-by: Paul Moore <paul.moore@hp.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/selinux/ss/ebitmap.c
security/selinux/ss/mls.c
security/selinux/ss/services.c