staging: ft1000: Fix goto error logic.
authorMarek Belisko <marek.belisko@open-nandra.com>
Wed, 24 Nov 2010 09:42:39 +0000 (10:42 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 29 Nov 2010 19:45:24 +0000 (11:45 -0800)
commit4960b8fe1b0602195e2170bb94d50edc47d36d73
treea34266c75c5ef6450e294ea5540e18800275eae3
parente999fb057436c2167d5ee3f5c82753e953981525
staging: ft1000: Fix goto error logic.

Fix goto error logic which could lead to kernel panics
because kthread_stop() is called in not correct error
conditions. Seen it sometimes when dsp_reload() fails
then I got kernel panic.

Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/ft1000/ft1000-usb/ft1000_usb.c