mm: prevent page_frag_alloc() from corrupting the memory
[platform/kernel/linux-rpi.git] / drivers / atm / firestream.c
index 3bc3c31..4f67404 100644 (file)
@@ -1676,6 +1676,8 @@ static int fs_init(struct fs_dev *dev)
        dev->hw_base = pci_resource_start(pci_dev, 0);
 
        dev->base = ioremap(dev->hw_base, 0x1000);
+       if (!dev->base)
+               return 1;
 
        reset_chip (dev);