Message ID | 20240822161219.459054-3-kovalev@altlinux.org (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | bfs: fix null-ptr-deref and possible warning in bfs_move_block() func | expand |
diff --git a/fs/bfs/file.c b/fs/bfs/file.c index 23773e62994024..3f0c506584560e 100644 --- a/fs/bfs/file.c +++ b/fs/bfs/file.c @@ -44,6 +44,7 @@ static int bfs_move_block(unsigned long from, unsigned long to, return -EIO; } memcpy(new->b_data, bh->b_data, bh->b_size); + set_buffer_uptodate(new); mark_buffer_dirty(new); bforget(bh); brelse(new);