summaryrefslogtreecommitdiffstats
path: root/fs/ntfs/index.c
diff options
context:
space:
mode:
authorAnton Altaparmakov <aia21@cantab.net>2005-09-08 20:29:50 +0100
committerAnton Altaparmakov <aia21@cantab.net>2005-09-08 20:29:50 +0100
commit8e08ceaeacd5d300aaad166f2eef8bfc37e09831 (patch)
treeab4bb4330cf47b188c5aa02c58d9fa04d93d348d /fs/ntfs/index.c
parent6e48321a40610f7213e3ac75ba234f6f8b3ed5f5 (diff)
downloadlinux-8e08ceaeacd5d300aaad166f2eef8bfc37e09831.tar.gz
linux-8e08ceaeacd5d300aaad166f2eef8bfc37e09831.tar.bz2
linux-8e08ceaeacd5d300aaad166f2eef8bfc37e09831.zip
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/ntfs/index.c')
-rw-r--r--fs/ntfs/index.c1
1 files changed, 1 insertions, 0 deletions
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,
&ie->key, key_len)) {
ir_done:
ictx->is_in_root = TRUE;
+ ictx->ir = ir;
ictx->actx = actx;
ictx->base_ni = base_ni;
ictx->ia = NULL;