qlcnic: correctly handle qlcnic_alloc_mbx_args
authorInsu Yun <wuninsu@gmail.com>
Tue, 29 Dec 2015 20:02:18 +0000 (15:02 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Jan 2016 22:14:30 +0000 (17:14 -0500)
commitb77357b69225a8e68d222451911feab50f2c6652
treeaa611f4d064d26a1f48274104b7fcf8cf539c5e9
parent9c982e86dbdbaa3fb248dfc776dddda32cbc8927
qlcnic: correctly handle qlcnic_alloc_mbx_args

Since qlcnic_alloc_mbx_args can be failed,
return value should be checked.

Signed-off-by: Insu Yun <wuninsu@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c