Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=1db733eff6319cdf4199fc7d3a3554fef1361f1a
Commit:     1db733eff6319cdf4199fc7d3a3554fef1361f1a
Parent:     c72368310d6799da92ec12192d8b15c2ae7ab0b5
Author:     Dan Williams <[EMAIL PROTECTED]>
AuthorDate: Fri May 25 13:36:57 2007 -0400
Committer:  John W. Linville <[EMAIL PROTECTED]>
CommitDate: Mon Jun 11 14:28:41 2007 -0400

    [PATCH] libertas: don't tear down netdev in libertas_activate_card
    
    libertas_activate_card() doesn't create the netdev, and shouldn't
    free it on error.  The caller of libertas_activate_card() is
    responsible for cleaning up errors from libertas_add_card(),
    not libertas_activate_card().
    
    Signed-off-by: Dan Williams <[EMAIL PROTECTED]>
    Signed-off-by: John W. Linville <[EMAIL PROTECTED]>
---
 drivers/net/wireless/libertas/main.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/libertas/main.c 
b/drivers/net/wireless/libertas/main.c
index b05a6f9..5fde636 100644
--- a/drivers/net/wireless/libertas/main.c
+++ b/drivers/net/wireless/libertas/main.c
@@ -878,8 +878,6 @@ err_registerdev:
        /* Stop the thread servicing the interrupts */
        wake_up_interruptible(&priv->mainthread.waitq);
        wlan_terminate_thread(&priv->mainthread);
-       kfree(priv->adapter);
-       free_netdev(dev);
 done:
        lbs_deb_leave_args(LBS_DEB_NET, "ret %d", ret);
        return ret;
-
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