diff options
Diffstat (limited to 'fs/fuse')
-rw-r--r-- | fs/fuse/file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/fuse/file.c b/fs/fuse/file.c index d9fdb7cec538..821d10f719bd 100644 --- a/fs/fuse/file.c +++ b/fs/fuse/file.c | |||
@@ -1465,7 +1465,7 @@ static loff_t fuse_file_llseek(struct file *file, loff_t offset, int origin) | |||
1465 | case SEEK_END: | 1465 | case SEEK_END: |
1466 | retval = fuse_update_attributes(inode, NULL, file, NULL); | 1466 | retval = fuse_update_attributes(inode, NULL, file, NULL); |
1467 | if (retval) | 1467 | if (retval) |
1468 | return retval; | 1468 | goto exit; |
1469 | offset += i_size_read(inode); | 1469 | offset += i_size_read(inode); |
1470 | break; | 1470 | break; |
1471 | case SEEK_CUR: | 1471 | case SEEK_CUR: |
@@ -1479,6 +1479,7 @@ static loff_t fuse_file_llseek(struct file *file, loff_t offset, int origin) | |||
1479 | } | 1479 | } |
1480 | retval = offset; | 1480 | retval = offset; |
1481 | } | 1481 | } |
1482 | exit: | ||
1482 | mutex_unlock(&inode->i_mutex); | 1483 | mutex_unlock(&inode->i_mutex); |
1483 | return retval; | 1484 | return retval; |
1484 | } | 1485 | } |