summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/host1x
diff options
context:
space:
mode:
authorTyler Hicks <tyhicks@canonical.com>2013-11-13 19:09:42 +0100
committerTyler Hicks <tyhicks@canonical.com>2013-11-14 21:12:15 +0100
commit2000f5beabc9c6baf084de5f7879975408e3652c (patch)
tree73840a7dd710710ef203cade2cfc31e873d28abb /drivers/gpu/host1x
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next (diff)
downloadlinux-2000f5beabc9c6baf084de5f7879975408e3652c.tar.xz
linux-2000f5beabc9c6baf084de5f7879975408e3652c.zip
eCryptfs: file->private_data is always valid
When accessing the lower_file pointer located in private_data of eCryptfs files, there is no need to check to see if the private_data pointer has been initialized to a non-NULL value. The file->private_data and file->private_data->lower_file pointers are always initialized to non-NULL values in ecryptfs_open(). This change quiets a Smatch warning: CHECK /var/scm/kernel/linux/fs/ecryptfs/file.c fs/ecryptfs/file.c:321 ecryptfs_unlocked_ioctl() error: potential NULL dereference 'lower_file'. fs/ecryptfs/file.c:335 ecryptfs_compat_ioctl() error: potential NULL dereference 'lower_file'. Signed-off-by: Tyler Hicks <tyhicks@canonical.com> Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Geyslan G. Bem <geyslan@gmail.com> Cc: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/gpu/host1x')
0 files changed, 0 insertions, 0 deletions