1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/qlogic/qlcnic
Tom Seewald 84460f01cb qlcnic: Add null check after calling netdev_alloc_skb
The function qlcnic_dl_lb_test() currently calls netdev_alloc_skb()
without checking afterwards that the allocation succeeded. Fix this by
checking if the skb is NULL and returning an error in such a case.
Breaking out of the loop if the skb is NULL is not correct as no error
would be reported to the caller and no message would be printed for the
user.

Cc: David S. Miller <davem@davemloft.net>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Tom Seewald <tseewald@gmail.com>
Link: https://lore.kernel.org/r/20210503115736.2104747-26-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-05-13 17:33:28 +02:00
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
qlcnic.h net/qlcnic: Convert to SPDX license identifiers 2020-09-16 14:32:10 +02:00
qlcnic_83xx_hw.c networking changes for the 5.10 merge window 2020-10-15 18:42:13 -07:00
qlcnic_83xx_hw.h net/qlcnic: Convert to SPDX license identifiers 2020-09-16 14:32:10 +02:00
qlcnic_83xx_init.c qlcnic: fix error return code in qlcnic_83xx_restart_hw() 2020-11-16 15:26:42 -08:00
qlcnic_83xx_vnic.c net/qlcnic: Convert to SPDX license identifiers 2020-09-16 14:32:10 +02:00
qlcnic_ctx.c net/qlcnic: Convert to SPDX license identifiers 2020-09-16 14:32:10 +02:00
qlcnic_dcb.c net/qlcnic: Convert to SPDX license identifiers 2020-09-16 14:32:10 +02:00
qlcnic_dcb.h net/qlcnic: Convert to SPDX license identifiers 2020-09-16 14:32:10 +02:00
qlcnic_ethtool.c qlcnic: Add null check after calling netdev_alloc_skb 2021-05-13 17:33:28 +02:00
qlcnic_hdr.h net/qlcnic: Convert to SPDX license identifiers 2020-09-16 14:32:10 +02:00
qlcnic_hw.c net/qlcnic: Convert to SPDX license identifiers 2020-09-16 14:32:10 +02:00
qlcnic_hw.h net/qlcnic: Convert to SPDX license identifiers 2020-09-16 14:32:10 +02:00
qlcnic_init.c net/qlcnic: Convert to SPDX license identifiers 2020-09-16 14:32:10 +02:00
qlcnic_io.c net/qlcnic: Convert to SPDX license identifiers 2020-09-16 14:32:10 +02:00
qlcnic_main.c net: remove ndo_udp_tunnel_* callbacks 2021-01-07 12:53:29 -08:00
qlcnic_minidump.c net/qlcnic: Fix a use after free in qlcnic_83xx_get_minidump_template 2021-03-11 18:08:14 -08:00
qlcnic_sriov.h net/qlcnic: Convert to SPDX license identifiers 2020-09-16 14:32:10 +02:00
qlcnic_sriov_common.c drivers: net: qlcnic: simplify the return expression of qlcnic_sriov_vf_shutdown() 2020-12-08 16:22:54 -08:00
qlcnic_sriov_pf.c net/qlcnic: Convert to SPDX license identifiers 2020-09-16 14:32:10 +02:00
qlcnic_sysfs.c net/qlcnic: Convert to SPDX license identifiers 2020-09-16 14:32:10 +02:00