projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix nobh_truncate_page() to not pass stack garbage to get_block()
[firefly-linux-kernel-4.4.55.git]
/
fs
/
buffer.c
diff --git
a/fs/buffer.c
b/fs/buffer.c
index aed297739eb0796d8c6212842003fb2976c5fba0..49106127a4aa5f8f480dbd61968c0c6d0acd6b58 100644
(file)
--- a/
fs/buffer.c
+++ b/
fs/buffer.c
@@
-2736,6
+2736,8
@@
has_buffers:
pos += blocksize;
}
+ map_bh.b_size = blocksize;
+ map_bh.b_state = 0;
err = get_block(inode, iblock, &map_bh, 0);
if (err)
goto unlock;