diff options
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 3d496eae1b47..6647204e4636 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -1663,7 +1663,7 @@ static inline void flush_unauthorized_files(struct files_struct * files) | |||
1663 | continue; | 1663 | continue; |
1664 | } | 1664 | } |
1665 | if (devnull) { | 1665 | if (devnull) { |
1666 | rcuref_inc(&devnull->f_count); | 1666 | get_file(devnull); |
1667 | } else { | 1667 | } else { |
1668 | devnull = dentry_open(dget(selinux_null), mntget(selinuxfs_mount), O_RDWR); | 1668 | devnull = dentry_open(dget(selinux_null), mntget(selinuxfs_mount), O_RDWR); |
1669 | if (!devnull) { | 1669 | if (!devnull) { |