qlcnic: Handle qlcnic_alloc_mbx_args() failure
qlcnic_alloc_mbx_args() may fail due to failure in memory allocation. This patch checks for failure of qlcnic_alloc_mbx_args() to avoid potential invalid memory access. Signed-off-by:Shahed Shaikh <shahed.shaikh@qlogic.com> Signed-off-by:
Jitendra Kalsaria <jitendra.kalsaria@qlogic.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 103 additions, 30 deletionsdrivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c
- drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 5 additions, 1 deletiondrivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c
- drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 93 additions, 32 deletionsdrivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c
- drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 5 additions, 1 deletiondrivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c
Please register or sign in to comment