tree 4ad69b823c2cc943c0ab84445a1435e65313a6e5
parent acf73a8563ff7540a54345c23f6cfe5a49b9d682
author Pavel Roskin <[EMAIL PROTECTED]> Fri, 02 Sep 2005 04:05:19 -0400
committer Jeff Garzik <[EMAIL PROTECTED]> Tue, 06 Sep 2005 02:13:44 -0400

[PATCH] orinoco: Fix memory leak on error in processing hostscan frames.

Signed-off-by: Pavel Roskin <[EMAIL PROTECTED]>

diff-tree ca955293cdfd3139e150d3b4fed3922a7eb651fb (from 
cb289b9f9b2a0f3ae7070a008f22e383b37526ee)
Author: Pavel Roskin <[EMAIL PROTECTED]>
Date:   Thu Sep 1 19:08:00 2005 -0400

    Fix memory leak on error in processing hostscan frames.
Signed-off-by: Jeff Garzik <[EMAIL PROTECTED]>

 drivers/net/wireless/orinoco.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/net/wireless/orinoco.c b/drivers/net/wireless/orinoco.c
--- a/drivers/net/wireless/orinoco.c
+++ b/drivers/net/wireless/orinoco.c
@@ -1284,8 +1284,10 @@ static void __orinoco_ev_info(struct net
                /* Read scan data */
                err = hermes_bap_pread(hw, IRQ_BAP, (void *) buf, len,
                                       infofid, sizeof(info));
-               if (err)
+               if (err) {
+                       kfree(buf);
                        break;
+               }
 
 #ifdef ORINOCO_DEBUG
                {
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to