RDMA/amso1100: Check kmalloc() result in c2_register_device()
authorRoel Kluin <roel.kluin@gmail.com>
Sun, 6 Sep 2009 03:24:24 +0000 (20:24 -0700)
committerRoland Dreier <rolandd@cisco.com>
Sun, 6 Sep 2009 03:24:24 +0000 (20:24 -0700)
commit1493ab4083c315a978e51b8957bf87859703745d
treebd7d8d96256aca31fdc904dddc1c4ae4e22a74b2
parentb1b8afb83336b66ac7198111aad4ead41132b53f
RDMA/amso1100: Check kmalloc() result in c2_register_device()

dev->ibdev.iwcm allocation may fail, prevent a dereference.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/amso1100/c2_provider.c