From: Tyler Hicks Date: Wed, 27 Feb 2013 19:37:48 +0000 (-0800) Subject: eCryptfs: Fix redundant error check on ecryptfs_find_daemon_by_euid() X-Git-Tag: v3.9-rc2~20^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1111eae90fb64a9d9ed133e410712f1e34fdce4a;p=pandora-kernel.git eCryptfs: Fix redundant error check on ecryptfs_find_daemon_by_euid() It is sufficient to check the return code of ecryptfs_find_daemon_by_euid(). If it returns 0, it always sets the daemon pointer to point to a valid ecryptfs_daemon. Signed-off-by: Tyler Hicks Reported-by: Kees Cook --- Reading git-diff-tree failed