Florian Fainelli 9429a6b7e9 net/hsr: Check skb_put_padto() return value
commit 414e7d76af6d3ec2dd4e9079927dbe0e2e4ca914 upstream.

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: ee1c27977284 ("net/hsr: Added support for HSR v1")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-10-01 20:40:01 +02:00
..
2016-04-15 17:06:48 -04:00
2018-04-13 19:48:29 +02:00
2014-07-08 11:35:31 -07:00
2016-04-15 17:06:48 -04:00
2014-07-08 11:35:31 -07:00
2016-04-15 17:06:48 -04:00
2014-07-08 11:35:31 -07:00