flat: note bug
authorAlan Cox <alan@linux.intel.com>
Sun, 11 Mar 2018 14:12:07 +0000 (14:12 +0000)
committerAlan Cox <alan@linux.intel.com>
Sun, 11 Mar 2018 14:12:07 +0000 (14:12 +0000)
Kernel/flat.c

index 16dd360..bca6cee 100644 (file)
@@ -242,6 +242,7 @@ int pagemap_realloc(usize_t size)
 
        mb->start = kmalloc(size);
        mb->end = mb->start + size;
+       /* FIXME: on the fail case we should put back the old maps */
        if (mb->start == NULL)
                return ENOMEM;
        return 0;