staging: ft1000: fix skb, netdev, memory leaks
authorVasiliy Kulikov <segooon@gmail.com>
Tue, 28 Sep 2010 17:49:35 +0000 (21:49 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 30 Sep 2010 11:14:07 +0000 (04:14 -0700)
commitc95aef4161c38775d58cca522e4c4b69eb97548e
treef8426099ddbe55cdd5548c885be8b512fe120423
parent52cab756a2da989859322aed0573a851aa88731c
staging: ft1000: fix skb, netdev, memory leaks

ft1000_copy_up_pkt() doesn't free skb on errors.
init_ft1000_card() doesn't free netdev with free_netdev() but with kfree().
init_ft1000_card() doesn't check request_region()'s return value
and doesn't free region on error.

Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c