[openib-general] RE: [PATCH] thinko fix in core/cache.c

Sean Hefty sean.hefty at intel.com
Mon Apr 10 11:41:47 PDT 2006


Updated patch for the trunk.

- Sean

---

Index: cache.c
===================================================================
--- cache.c	(revision 6387)
+++ cache.c	(working copy)
@@ -302,7 +302,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);
 
 	if (!device->cache.pkey_cache || !device->cache.gid_cache) {




More information about the general mailing list