]> err.no Git - linux-2.6/commitdiff
[NET]: com90xx kmalloc fix
authorAndrew Morton <akpm@osdl.org>
Sat, 1 Apr 2006 08:49:35 +0000 (00:49 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 1 Apr 2006 08:49:35 +0000 (00:49 -0800)
WARNING: "__you_cannot_kzalloc_that_much" [drivers/net/arcnet/com90xx.ko] undefined!

We're trying to allocate negative amounts of memory..

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/arcnet/com90xx.c

index 43150b2bd13fa7f324b7949ac30d5fd951ba9050..0d45553ff75c8c08032c57cfa041f28d617d64be 100644 (file)
@@ -125,11 +125,11 @@ static void __init com90xx_probe(void)
        if (!io && !irq && !shmem && !*device && com90xx_skip_probe)
                return;
 
-       shmems = kzalloc(((0x10000-0xa0000) / 0x800) * sizeof(unsigned long),
+       shmems = kzalloc(((0x100000-0xa0000) / 0x800) * sizeof(unsigned long),
                         GFP_KERNEL);
        if (!shmems)
                return;
-       iomem = kzalloc(((0x10000-0xa0000) / 0x800) * sizeof(void __iomem *),
+       iomem = kzalloc(((0x100000-0xa0000) / 0x800) * sizeof(void __iomem *),
                         GFP_KERNEL);
        if (!iomem) {
                kfree(shmems);