From: Marek Belisko <marek.belisko@gmail.com>
To: Greg Kroah-Hartman <gregkh@suse.de>,
Marek Belisko <marek.belisko@gmail.com>,
Arnd Bergmann <arnd@arndb.de>,
Vasiliy Kulikov <segooon@gmail.com>,
devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Cc: Marek Belisko <marek.belisko@gmail.com>
Subject: [PATCH 2/4] staging: ft1000: Fix memory leak when polling fail.
Date: Tue, 12 Oct 2010 10:26:41 +0200 [thread overview]
Message-ID: <1286872003-12449-3-git-send-email-marek.belisko@gmail.com> (raw)
In-Reply-To: <1286872003-12449-1-git-send-email-marek.belisko@gmail.com>
Signed-off-by: Marek Belisko <marek.belisko@gmail.com>
---
drivers/staging/ft1000/ft1000-usb/ft1000_usb.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_usb.c b/drivers/staging/ft1000/ft1000-usb/ft1000_usb.c
index cf041f3..dc2ef98 100644
--- a/drivers/staging/ft1000/ft1000-usb/ft1000_usb.c
+++ b/drivers/staging/ft1000/ft1000-usb/ft1000_usb.c
@@ -200,7 +200,8 @@ static int ft1000_probe(struct usb_interface *interface, const struct usb_device
{
kthread_stop(pft1000info->pPollThread );
}
- return 0;
+ ret = -EIO;
+ goto err_load;
}
msleep(100);
DEBUG("ft1000_probe::Waiting for Card Ready\n");
--
1.7.1
next prev parent reply other threads:[~2010-10-12 8:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-12 8:26 [PATCH 0/4] staging ft1000-usb code cleanup patches Marek Belisko
2010-10-12 8:26 ` [PATCH 1/4] staging: ft1000-usb: Remove global flag DSP_loading Marek Belisko
2010-10-12 8:26 ` Marek Belisko [this message]
2010-10-12 8:26 ` [PATCH 3/4] staging: ft1000: Remove unused/unnecessary comments Marek Belisko
2010-10-12 8:26 ` [PATCH 4/4] staging:ft1000: get rid of typedef usage Marek Belisko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1286872003-12449-3-git-send-email-marek.belisko@gmail.com \
--to=marek.belisko@gmail.com \
--cc=arnd@arndb.de \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=segooon@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome