|
@@ -302,7 +302,7 @@ static void ib_cache_setup_one(struct ib_device *device)
|
|
kmalloc(sizeof *device->cache.pkey_cache *
|
|
kmalloc(sizeof *device->cache.pkey_cache *
|
|
(end_port(device) - start_port(device) + 1), GFP_KERNEL);
|
|
(end_port(device) - start_port(device) + 1), GFP_KERNEL);
|
|
device->cache.gid_cache =
|
|
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);
|
|
(end_port(device) - start_port(device) + 1), GFP_KERNEL);
|
|
|
|
|
|
if (!device->cache.pkey_cache || !device->cache.gid_cache) {
|
|
if (!device->cache.pkey_cache || !device->cache.gid_cache) {
|