Skip to content
Commit a3d6ba0b authored by Andriy Gelman's avatar Andriy Gelman Committed by Carles Cufí
Browse files

net: route: Fix pkt leak if net_send_data() fails



If the call to net_send_data() fails, for example if the forwading
interface is down, then the pkt will leak. The reference taken by
net_pkt_shallow_clone() will never be released. Fix the problem
by dropping the rerefence count in the error path.

Signed-off-by: default avatarAndriy Gelman <andriy.gelman@gmail.com>
(cherry picked from commit a3cdb210)
parent 7e3d6fa6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment