summaryrefslogtreecommitdiffstats
path: root/fs/ecryptfs/keystore.c
diff options
context:
space:
mode:
authorGuenter Roeck2018-01-19 03:40:25 +0100
committerTyler Hicks2018-03-29 03:33:29 +0200
commitab13a9218c9883d1f51940b9e720c63ef54a2c07 (patch)
tree15de1ab010f40114b62aedadbce43b581cca4daa /fs/ecryptfs/keystore.c
parentMerge tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/... (diff)
downloadkernel-qcow2-linux-ab13a9218c9883d1f51940b9e720c63ef54a2c07.tar.gz
kernel-qcow2-linux-ab13a9218c9883d1f51940b9e720c63ef54a2c07.tar.xz
kernel-qcow2-linux-ab13a9218c9883d1f51940b9e720c63ef54a2c07.zip
ecryptfs: lookup: Don't check if mount_crypt_stat is NULL
mount_crypt_stat is assigned to &ecryptfs_superblock_to_private(ecryptfs_dentry->d_sb)->mount_crypt_stat, and mount_crypt_stat is not the first object in struct ecryptfs_sb_info. mount_crypt_stat is therefore never NULL. At the same time, no crash in ecryptfs_lookup() has been reported, and the lookup functions in other file systems don't check if d_sb is NULL either. Given that, remove the NULL check. Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Diffstat (limited to 'fs/ecryptfs/keystore.c')
0 files changed, 0 insertions, 0 deletions