[openib-general] [PATCH] core: fixed the pointer type in memory allocation

Dotan Barak dotanb at mellanox.co.il
Mon Apr 10 04:42:21 PDT 2006


core: fixed the pointer type in memory allocation

Signed-off-by: Dotan Barak <dotanb at mellanox.co.il>

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



More information about the general mailing list