diff options
-rw-r--r-- | mm/shmem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/shmem.c b/mm/shmem.c index f8485062f3ba..eef4ebea5158 100644 --- a/mm/shmem.c +++ b/mm/shmem.c | |||
@@ -1830,6 +1830,8 @@ shmem_mknod(struct inode *dir, struct dentry *dentry, int mode, dev_t dev) | |||
1830 | iput(inode); | 1830 | iput(inode); |
1831 | return error; | 1831 | return error; |
1832 | } | 1832 | } |
1833 | #else | ||
1834 | error = 0; | ||
1833 | #endif | 1835 | #endif |
1834 | if (dir->i_mode & S_ISGID) { | 1836 | if (dir->i_mode & S_ISGID) { |
1835 | inode->i_gid = dir->i_gid; | 1837 | inode->i_gid = dir->i_gid; |