aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mthca/mthca_main.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@mellanox.co.il>2006-04-10 13:17:43 -0700
committerRoland Dreier <rolandd@cisco.com>2006-04-10 13:17:43 -0700
commitce684df05a531904ea055d01aeee75321fa0db1e (patch)
tree0190ad3a94d12efeed218abe8e69a9062a75c75c /drivers/infiniband/hw/mthca/mthca_main.c
parentIPoIB: Use spin_lock_irq() instead of spin_lock_irqsave() (diff)
downloadlinux-dev-ce684df05a531904ea055d01aeee75321fa0db1e.tar.xz
linux-dev-ce684df05a531904ea055d01aeee75321fa0db1e.zip
IB/cache: Use correct pointer to calculate size
When allocating gid_cache, use kmalloc(sizeof *gid_cache, ...) rather than kmalloc(sizeof *pkey_cache, ...). It doesn't really matter which one is used, since the size ends up the same either way, but it's much better to say what we mean. Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/mthca/mthca_main.c')
0 files changed, 0 insertions, 0 deletions