]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - net/ipv6/esp6_offload.c
esp6: fix incorrect null pointer check on xo
authorColin Ian King <colin.king@canonical.com>
Tue, 18 Apr 2017 14:06:53 +0000 (15:06 +0100)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 19 Apr 2017 04:49:00 +0000 (06:49 +0200)
commitffa6f571e4e20bbe5b3d8b5e112e66b3b6c29632
tree921ec9ab617b8a08d741d3d66ec196faa5f0d22e
parentbcd1f8a45e7d5804e4f7bd78a91348cfce3cb74a
esp6: fix incorrect null pointer check on xo

The check for xo being null is incorrect, currently it is checking
for non-null, it should be checking for null.

Detected with CoverityScan, CID#1429349 ("Dereference after null check")

Fixes: 7862b4058b9f ("esp: Add gso handlers for esp4 and esp6")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/ipv6/esp6_offload.c