From: leonidk Date: Mon, 10 Apr 2006 11:50:43 +0000 (+0000) Subject: [MTHCA] a bugfix from Linux project X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=e848e70ad4c6358f0f421780934d3bc735605c30;p=~shefty%2Frdma-win.git [MTHCA] a bugfix from Linux project git-svn-id: svn://openib.tc.cornell.edu/gen1@302 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- 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) {