sis900: Fix mem leak in sis900_rx error path
authorJesper Juhl <jj@chaosbits.net>
Sat, 5 Feb 2011 10:41:53 +0000 (10:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 6 Feb 2011 02:08:57 +0000 (18:08 -0800)
commitbf1f9ae05036e12035f8e9a48f3dcf4dd14fdada
tree2f92d8a00362164dd1669f83a7b5580c022a2b14
parente45ff01d3f79bc71e6f514302a776cc8815eaecc
sis900: Fix mem leak in sis900_rx error path

Fix memory leak in error path of sis900_rx(). If we don't do this we'll
leak the skb we dev_alloc_skb()'ed just a few lines above when the
variable goes out of scope.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sis900.c