diff options
author | Anton Altaparmakov <aia21@cantab.net> | 2005-09-08 15:29:50 -0400 |
---|---|---|
committer | Anton Altaparmakov <aia21@cantab.net> | 2005-09-08 15:29:50 -0400 |
commit | 8e08ceaeacd5d300aaad166f2eef8bfc37e09831 (patch) | |
tree | ab4bb4330cf47b188c5aa02c58d9fa04d93d348d /fs | |
parent | 6e48321a40610f7213e3ac75ba234f6f8b3ed5f5 (diff) |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ntfs/ChangeLog | 3 | ||||
-rw-r--r-- | fs/ntfs/index.c | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/fs/ntfs/ChangeLog b/fs/ntfs/ChangeLog index 39dca6dced11..1168d3ed2bec 100644 --- a/fs/ntfs/ChangeLog +++ b/fs/ntfs/ChangeLog | |||
@@ -55,6 +55,9 @@ ToDo/Notes: | |||
55 | length is zero. | 55 | length is zero. |
56 | - Add runlist.[hc]::ntfs_rl_punch_nolock() which punches a caller | 56 | - Add runlist.[hc]::ntfs_rl_punch_nolock() which punches a caller |
57 | specified hole into a runlist. | 57 | 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. | ||
58 | 61 | ||
59 | 2.1.23 - Implement extension of resident files and make writing safe as well as | 62 | 2.1.23 - Implement extension of resident files and make writing safe as well as |
60 | many bug fixes, cleanups, and enhancements... | 63 | many bug fixes, cleanups, and enhancements... |
diff --git a/fs/ntfs/index.c b/fs/ntfs/index.c index 11fd5307d780..8f2d5727546f 100644 --- a/fs/ntfs/index.c +++ b/fs/ntfs/index.c | |||
@@ -205,6 +205,7 @@ int ntfs_index_lookup(const void *key, const int key_len, | |||
205 | &ie->key, key_len)) { | 205 | &ie->key, key_len)) { |
206 | ir_done: | 206 | ir_done: |
207 | ictx->is_in_root = TRUE; | 207 | ictx->is_in_root = TRUE; |
208 | ictx->ir = ir; | ||
208 | ictx->actx = actx; | 209 | ictx->actx = actx; |
209 | ictx->base_ni = base_ni; | 210 | ictx->base_ni = base_ni; |
210 | ictx->ia = NULL; | 211 | ictx->ia = NULL; |