From: Erez Zadok Date: Thu, 3 Dec 2009 18:35:27 +0000 (-0500) Subject: ecryptfs: initialize private persistent file before dereferencing pointer X-Git-Tag: v2.6.33-rc5~10^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e27759d7a333d1f25d628c4f7caf845c51be51c2;p=pandora-kernel.git ecryptfs: initialize private persistent file before dereferencing pointer Ecryptfs_open dereferences a pointer to the private lower file (the one stored in the ecryptfs inode), without checking if the pointer is NULL. Right afterward, it initializes that pointer if it is NULL. Swap order of statements to first initialize. Bug discovered by Duckjin Kang. Signed-off-by: Duckjin Kang Signed-off-by: Erez Zadok Cc: Dustin Kirkland Cc: Al Viro Cc: Signed-off-by: Tyler Hicks --- Reading git-diff-tree failed