usnic: correctly handle kzalloc return value
authorInsu Yun <wuninsu@gmail.com>
Mon, 19 Oct 2015 16:57:10 +0000 (16:57 +0000)
committerDoug Ledford <dledford@redhat.com>
Wed, 21 Oct 2015 20:41:19 +0000 (16:41 -0400)
commitfe274c5aed1b5e311e0e83306572b70312c0313a
tree393dd2630ce412b115271c3ba454609816633535
parent35ef4a9ebfe3392da8ca025c8c16365c9da472e5
usnic: correctly handle kzalloc return value

Since kzalloc returns memory address, not error code,
it should be checked whether it is null or not.

Signed-off-by: Insu Yun <wuninsu@gmail.com>
Reviewed-by: Dave Goodell <dgoodell@cisco.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c