Skip to content

Commit

Permalink
Add a missing unlock in tmpfs_lseek
Browse files Browse the repository at this point in the history
  • Loading branch information
saagarjha committed Nov 11, 2020
1 parent 5c223f5 commit 0c96740
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/tmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ static off_t_ tmpfs_lseek(struct fd *fd, off_t_ off, int whence) {
struct tmp_inode *inode = tmpfs_fd_inode(fd);
lock(&inode->lock);
size = inode->stat.size;
unlock(&inode->lock);
}

int err = generic_seek(fd, off, whence, size);
Expand Down

0 comments on commit 0c96740

Please sign in to comment.