From e848e70ad4c6358f0f421780934d3bc735605c30 Mon Sep 17 00:00:00 2001 From: leonidk Date: Mon, 10 Apr 2006 11:50:43 +0000 Subject: [PATCH] [MTHCA] a bugfix from Linux project git-svn-id: svn://openib.tc.cornell.edu/gen1@302 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- trunk/hw/mthca/kernel/mt_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/hw/mthca/kernel/mt_cache.c b/trunk/hw/mthca/kernel/mt_cache.c index cffc64e0..a05b601a 100644 --- a/trunk/hw/mthca/kernel/mt_cache.c +++ b/trunk/hw/mthca/kernel/mt_cache.c @@ -343,7 +343,7 @@ static void ib_cache_setup_one(struct ib_device *device) 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) { -- 2.41.0