]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
NTFS: Fix a bug in fs/ntfs/index.c::ntfs_index_lookup(). When the returned
authorAnton Altaparmakov <aia21@cantab.net>
Thu, 8 Sep 2005 19:29:50 +0000 (20:29 +0100)
committerAnton Altaparmakov <aia21@cantab.net>
Thu, 8 Sep 2005 19:29:50 +0000 (20:29 +0100)
      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>
fs/ntfs/ChangeLog
fs/ntfs/index.c

index 39dca6dced11c1e3f0a862eff7e0d1d38437278a..1168d3ed2bec44a3bf275f5ef32515c75b12c474 100644 (file)
@@ -55,6 +55,9 @@ ToDo/Notes:
          length is zero.
        - Add runlist.[hc]::ntfs_rl_punch_nolock() which punches a caller
          specified hole into a runlist.
+       - 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 to Yura Pakhuchiy for finding this bug.
 
 2.1.23 - Implement extension of resident files and make writing safe as well as
         many bug fixes, cleanups, and enhancements...
index 11fd5307d780568ce8b5a0fc8ab63cf39d1aaf02..8f2d5727546f8a61460a3429fedc7e0e8a18d82e 100644 (file)
@@ -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;