aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/lists.py
diff options
context:
space:
mode:
authorTom Seewald <[email protected]>2021-05-03 13:56:52 +0200
committerGreg Kroah-Hartman <[email protected]>2021-05-13 17:33:28 +0200
commit84460f01cba382553199bc1361f69a872d5abed4 (patch)
tree6e8918eff8182324383f27641c77b4f7f651eeb6 /scripts/gdb/linux/lists.py
parentb95b57dfe7a142bf2446548eb7f49340fd73e78b (diff)
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 <[email protected]> Cc: stable <[email protected]> Signed-off-by: Tom Seewald <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions