core: fixed the pointer type in memory allocation

Signed-off-by: Dotan Barak <[EMAIL PROTECTED]>

Index: last_stable/src/linux-kernel/infiniband/core/cache.c
===================================================================
--- last_stable.orig/src/linux-kernel/infiniband/core/cache.c   2006-04-10 
11:12:32.000000000 +0300
+++ last_stable/src/linux-kernel/infiniband/core/cache.c        2006-04-10 
14:22:47.000000000 +0300
@@ -326,7 +326,7 @@ static void ib_cache_setup_one(struct ib
                kmalloc(sizeof *device->cache.pkey_cache *
                        (end_port(device) - start_port(device) + 1), 
GFP_KERNEL);
        device->cache.gid_cache =
-               kmalloc(sizeof *device->cache.pkey_cache *
+               kmalloc(sizeof *device->cache.gid_cache *
                        (end_port(device) - start_port(device) + 1), 
GFP_KERNEL);
 
        device->cache.lmc_cache = kmalloc(sizeof *device->cache.lmc_cache *

Dotan
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to