Skip to content
Commit 414e7d76 authored by Florian Fainelli's avatar Florian Fainelli Committed by David S. Miller
Browse files

net/hsr: Check skb_put_padto() return value



skb_put_padto() will free the sk_buff passed as reference in case of
errors, but we still need to check its return value and decide what to
do.

Detected by CoverityScan, CID#1416688 ("CHECKED_RETURN")

Fixes: ee1c2797 ("net/hsr: Added support for HSR v1")
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c5cff856
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment