ext4: unify the type of flexbg_size to unsigned int
[platform/kernel/linux-starfive.git] / fs / ntfs3 / index.c
index 124c6e8..cf92b24 100644 (file)
@@ -729,6 +729,9 @@ static struct NTFS_DE *hdr_find_e(const struct ntfs_index *indx,
        u32 total = le32_to_cpu(hdr->total);
        u16 offs[128];
 
+       if (unlikely(!cmp))
+               return NULL;
+
 fill_table:
        if (end > total)
                return NULL;