summary refs log tree commit diff
path: root/kernel/kexec_core.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2018-01-18 18:40:25 -0800
committerTyler Hicks <tyhicks@canonical.com>2018-03-29 01:33:29 +0000
commitab13a9218c9883d1f51940b9e720c63ef54a2c07 (patch)
tree15de1ab010f40114b62aedadbce43b581cca4daa /kernel/kexec_core.c
parent3215b9d57a2c75c4305a3956ca303d7004485200 (diff)
downloadlinux-ab13a9218c9883d1f51940b9e720c63ef54a2c07.tar.gz
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 'kernel/kexec_core.c')
0 files changed, 0 insertions, 0 deletions