aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igb/igb_main.c
diff options
context:
space:
mode:
authorCong Wang <[email protected]>2024-08-25 19:16:38 +0000
committerJakub Kicinski <[email protected]>2024-08-27 21:19:40 +0000
commitdefd8b3c37b0f9cb3e0f60f47d3d78d459d57fda (patch)
treee2d53b01dfcd17753a79378e455105201f924803 /drivers/net/ethernet/intel/igb/igb_main.c
parentMerge branch 'fixes-for-ipsec-over-bonding' (diff)
downloadkernel-defd8b3c37b0f9cb3e0f60f47d3d78d459d57fda.tar.gz
kernel-defd8b3c37b0f9cb3e0f60f47d3d78d459d57fda.zip
gtp: fix a potential NULL pointer dereference
When sockfd_lookup() fails, gtp_encap_enable_socket() returns a NULL pointer, but its callers only check for error pointers thus miss the NULL pointer case. Fix it by returning an error pointer with the error code carried from sockfd_lookup(). (I found this bug during code inspection.) Fixes: 1e3a3abd8b28 ("gtp: make GTP sockets in gtp_newlink optional") Cc: Andreas Schultz <[email protected]> Cc: Harald Welte <[email protected]> Signed-off-by: Cong Wang <[email protected]> Reviewed-by: Simon Horman <[email protected]> Reviewed-by: Pablo Neira Ayuso <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igb/igb_main.c')
0 files changed, 0 insertions, 0 deletions