diff options
Diffstat (limited to 'fs/namei.c')
-rw-r--r-- | fs/namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c index d580df2e6804..dc51bac037c9 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
@@ -2542,7 +2542,7 @@ static int handle_truncate(struct file *filp) | |||
2542 | /* | 2542 | /* |
2543 | * Refuse to truncate files with mandatory locks held on them. | 2543 | * Refuse to truncate files with mandatory locks held on them. |
2544 | */ | 2544 | */ |
2545 | error = locks_verify_locked(inode); | 2545 | error = locks_verify_locked(filp); |
2546 | if (!error) | 2546 | if (!error) |
2547 | error = security_path_truncate(path); | 2547 | error = security_path_truncate(path); |
2548 | if (!error) { | 2548 | if (!error) { |