Fix install_process_keyring error handling
authorAndi Kleen <ak@linux.intel.com>
Thu, 28 Oct 2010 12:16:13 +0000 (13:16 +0100)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 10 Feb 2014 21:11:33 +0000 (16:11 -0500)
commit14424d71693c91f25d74ac09793d9f4aae43c104
tree9f7de15a969dbb1a723d52d78f51e0d832275c88
parent000e338c2808b8f416df36f43074a46eebdffff0
Fix install_process_keyring error handling

commit 27d6379894be4a81984da4d48002196a83939ca9 upstream.

Fix an incorrect error check that returns 1 for error instead of the
expected error code.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
security/keys/process_keys.c