Skip to content
Snippets Groups Projects
Commit 2c84b0aa authored by Justin Iurman's avatar Justin Iurman Committed by Jakub Kicinski
Browse files

net: ipv6: rpl_iptunnel: Fix memory leak in rpl_input


Free the skb before returning from rpl_input when skb_cow_head() fails.
Use a "drop" label and goto instructions.

Fixes: a7a29f9c ("net: ipv6: add rpl sr tunnel")
Signed-off-by: default avatarJustin Iurman <justin.iurman@uliege.be>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20240911174557.11536-1-justin.iurman@uliege.be


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent b9c7ac4f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment