net: nb8800: Fix SKB leak in nb8800_receive()
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 15 Jul 2016 23:41:16 +0000 (16:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Jul 2016 05:06:00 +0000 (22:06 -0700)
commitea6ff112b095dce2060c304195904d859c3e2625
tree85f63a6948c2cea5bdea6e4ac69dc0df05758bb4
parentde702da7a823ab0c4a1e53ed79a2695f0d453855
net: nb8800: Fix SKB leak in nb8800_receive()

In case nb8800_receive() fails to allocate a fragment, we would leak the
SKB freshly allocated and just return, instead, free it.

Reported-by: coverity (CID 1341750)
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Mans Rullgard <mans@mansr.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aurora/nb8800.c