diff options
author | Erez Zadok <ezk@cs.sunysb.edu> | 2009-12-03 13:35:27 -0500 |
---|---|---|
committer | Tyler Hicks <tyhicks@linux.vnet.ibm.com> | 2010-01-19 22:32:54 -0600 |
commit | e27759d7a333d1f25d628c4f7caf845c51be51c2 (patch) | |
tree | 6181c5f5abe8b2e4b7bdc45f1231c769cc57a403 /fs/nilfs2/ifile.h | |
parent | 38e3eaeedcac75360af8a92e7b66956ec4f334e5 (diff) | |
download | linux-stable-e27759d7a333d1f25d628c4f7caf845c51be51c2.tar.gz linux-stable-e27759d7a333d1f25d628c4f7caf845c51be51c2.tar.bz2 linux-stable-e27759d7a333d1f25d628c4f7caf845c51be51c2.zip |
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 <fromdj2k@gmail.com>
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Cc: Dustin Kirkland <kirkland@canonical.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: <stable@kernel.org>
Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
Diffstat (limited to 'fs/nilfs2/ifile.h')
0 files changed, 0 insertions, 0 deletions