net/hsr: Check skb_put_padto() return value
commit414e7d76af6d3ec2dd4e9079927dbe0e2e4ca914
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 21 Aug 2017 19:59:10 +0000 (21 12:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Aug 2017 20:40:23 +0000 (22 13:40 -0700)
tree7c311865268205bccdd49a2739a88e847effcdde
parentc5cff8561d2d0006e972bd114afd51f082fee77c
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: 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>
net/hsr/hsr_device.c