diff options
Diffstat (limited to 'fs/fat/file.c')
-rw-r--r-- | fs/fat/file.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/fat/file.c b/fs/fat/file.c index f5a7e907a8fa..81b15c623803 100644 --- a/fs/fat/file.c +++ b/fs/fat/file.c | |||
@@ -27,7 +27,12 @@ int fat_generic_ioctl(struct inode *inode, struct file *filp, | |||
27 | switch (cmd) { | 27 | switch (cmd) { |
28 | case FAT_IOCTL_GET_ATTRIBUTES: | 28 | case FAT_IOCTL_GET_ATTRIBUTES: |
29 | { | 29 | { |
30 | u32 attr = fat_make_attrs(inode); | 30 | u32 attr; |
31 | |||
32 | mutex_lock(&inode->i_mutex); | ||
33 | attr = fat_make_attrs(inode); | ||
34 | mutex_unlock(&inode->i_mutex); | ||
35 | |||
31 | return put_user(attr, user_attr); | 36 | return put_user(attr, user_attr); |
32 | } | 37 | } |
33 | case FAT_IOCTL_SET_ATTRIBUTES: | 38 | case FAT_IOCTL_SET_ATTRIBUTES: |