flat: fix stupid bug I noticed
authorAlan Cox <alan@linux.intel.com>
Thu, 11 Feb 2016 19:59:40 +0000 (19:59 +0000)
committerAlan Cox <alan@linux.intel.com>
Thu, 11 Feb 2016 19:59:40 +0000 (19:59 +0000)
May well kick this code out shortly anyway

Kernel/flat.c

index e9b2a9e..50afdc0 100644 (file)
@@ -242,7 +242,7 @@ int pagemap_realloc(usize_t size)
 
        mb->start = kmalloc(size);
        mb->end = mb->start + size;
-       if (mb->end == NULL)
+       if (mb->start == NULL)
                return ENOMEM;
        return 0;
 }