Skip to content

Commit 8e08cea

Browse files
NTFS: Fix a bug in fs/ntfs/index.c::ntfs_index_lookup(). When the returned
index entry is in the index root, we forgot to set the @ir pointer in the index context. Thanks for Yura Pakhuchiy for finding this bug. Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
1 parent 6e48321 commit 8e08cea

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎fs/ntfs/ChangeLog‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ ToDo/Notes:
5555
length is zero.
5656
- Add runlist.[hc]::ntfs_rl_punch_nolock() which punches a caller
5757
specified hole into a runlist.
58+
- Fix a bug in fs/ntfs/index.c::ntfs_index_lookup(). When the returned
59+
index entry is in the index root, we forgot to set the @ir pointer in
60+
the index context. Thanks to Yura Pakhuchiy for finding this bug.
5861

5962
2.1.23 - Implement extension of resident files and make writing safe as well as
6063
many bug fixes, cleanups, and enhancements...

‎fs/ntfs/index.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ int ntfs_index_lookup(const void *key, const int key_len,
205205
&ie->key, key_len)) {
206206
ir_done:
207207
ictx->is_in_root = TRUE;
208+
ictx->ir = ir;
208209
ictx->actx = actx;
209210
ictx->base_ni = base_ni;
210211
ictx->ia = NULL;

0 commit comments

Comments
 (0)