projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'io_uring-6.0-2022-08-13' of git://git.kernel.dk/linux-block
[linux-2.6-microblaze.git]
/
fs
/
attr.c
diff --git
a/fs/attr.c
b/fs/attr.c
index
b5b8835
..
1552a5f
100644
(file)
--- a/
fs/attr.c
+++ b/
fs/attr.c
@@
-183,6
+183,8
@@
EXPORT_SYMBOL(setattr_prepare);
*/
int inode_newsize_ok(const struct inode *inode, loff_t offset)
{
+ if (offset < 0)
+ return -EINVAL;
if (inode->i_size < offset) {
unsigned long limit;