Tyler Hicks
2000f5beab
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>
2013-11-14 12:12:15 -08:00
..
2013-11-13 15:34:18 +09:00
2013-10-24 23:43:27 -04:00
2013-09-12 15:38:02 -07:00
2013-10-28 19:36:46 -04:00
2013-10-24 23:43:27 -04:00
2013-10-24 23:34:50 -04:00
2013-09-12 15:38:02 -07:00
2013-10-18 16:46:21 -07:00
2013-11-13 15:34:18 +09:00
2013-09-27 18:40:25 +01:00
2013-11-13 15:34:18 +09:00
2013-11-09 00:16:21 -05:00
2013-11-13 12:09:12 +09:00
2013-11-13 12:09:24 +09:00
2013-11-13 12:09:36 +09:00
2013-10-16 10:32:42 -05:00
2013-11-14 12:12:15 -08:00
2013-08-24 12:10:22 -04:00
2013-09-12 15:38:02 -07:00
2013-11-09 00:16:38 -05:00
2013-11-05 11:26:47 +01:00
2013-11-13 15:25:47 +09:00
2013-11-13 15:34:18 +09:00
2013-11-11 09:36:32 +09:00
2013-10-24 23:43:28 -04:00
2013-09-27 18:40:25 +01:00
2013-11-13 15:34:18 +09:00
2013-11-13 15:34:18 +09:00
2013-11-13 12:09:32 +09:00
2013-11-13 12:09:32 +09:00
2013-09-07 10:38:29 +02:00
2013-11-09 00:16:44 -05:00
2013-08-24 12:10:17 -04:00
2013-10-24 23:34:59 -04:00
2013-10-31 20:37:15 +01:00
2013-08-28 14:59:58 -04:00
2013-10-22 09:01:11 +01:00
2013-09-16 18:20:25 -07:00
2013-10-24 23:43:28 -04:00
2013-11-13 15:34:18 +09:00
2013-11-09 00:16:44 -05:00
2013-09-30 14:31:02 -07:00
2013-11-09 00:16:31 -05:00
2013-11-13 15:45:43 +09:00
2013-09-12 15:38:02 -07:00
2013-11-13 15:45:43 +09:00
2013-09-16 09:28:29 -07:00
2013-11-09 00:16:32 -05:00
2013-11-04 14:16:55 +01:00
2013-09-11 15:59:37 -07:00
2013-09-24 11:24:21 +02:00
2013-09-06 04:57:54 +01:00
2013-11-07 20:47:28 +09:00
2013-09-29 22:02:02 -04:00
2013-11-13 15:34:18 +09:00
2013-10-18 22:39:07 +02:00
2013-09-12 15:38:02 -07:00
2013-11-13 12:09:07 +09:00
2013-11-09 00:16:28 -05:00
2013-11-09 00:16:28 -05:00
2013-11-09 00:16:44 -05:00
2013-11-09 00:16:26 -05:00
2013-11-09 00:16:30 -05:00
2013-11-09 00:16:30 -05:00
2013-10-24 23:34:54 -04:00
2013-09-22 15:00:11 -07:00
2013-09-24 14:41:42 -07:00
2013-09-13 23:06:40 -04:00
2013-10-16 21:35:53 -07:00
2013-10-24 23:34:53 -04:00
2013-10-24 23:34:54 -04:00
2013-11-09 00:16:29 -05:00
2013-11-13 15:34:18 +09:00
2013-09-09 10:47:42 -07:00
2013-09-10 18:56:31 -04:00
2013-11-13 15:45:43 +09:00
2013-11-13 15:45:43 +09:00
2013-10-24 23:34:54 -04:00
2013-11-13 15:34:18 +09:00
2013-11-13 15:45:43 +09:00
2013-11-09 00:16:44 -05:00
2013-11-09 00:16:20 -05:00
2013-10-24 23:34:54 -04:00
2013-11-09 00:16:27 -05:00
2013-11-09 00:16:41 -05:00
2013-09-10 18:56:31 -04:00
2013-11-09 00:16:19 -05:00
2013-11-13 15:34:18 +09:00
2013-11-09 00:16:19 -05:00
2013-11-09 00:16:44 -05:00
2013-10-24 23:35:00 -04:00
2013-08-26 18:42:15 -07:00
2013-10-24 23:34:59 -04:00
2013-10-24 23:34:54 -04:00
2013-10-24 23:34:54 -04:00
2013-11-13 15:34:18 +09:00
2013-10-25 10:46:40 -04:00
2013-10-24 23:34:54 -04:00
2013-11-09 00:16:31 -05:00
2013-10-12 13:12:31 -07:00
2013-11-09 00:16:20 -05:00
2013-11-13 15:45:43 +09:00
2013-11-09 00:16:44 -05:00