Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=2638698df30b7b57a8dad7029a0c89fe6c4f6783
Commit:     2638698df30b7b57a8dad7029a0c89fe6c4f6783
Parent:     0ff804348d66550e7dd1d6781c65403b312e2da2
Author:     Hinko Kocevar <[EMAIL PROTECTED]>
AuthorDate: Sun Dec 16 14:08:58 2007 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Sun Dec 16 14:08:58 2007 -0800

    [IRDA]: irlmp_unregister_link() needs to free lsaps.
    
    While testing the mcs7780 based IrDA USB dongle I've stumbled upon
    memory leak in irlmp_unregister_link(). Hashbin for lsaps is created in
    irlmp_register_link and should probably be freed in irlmp_unregister_link().
    
    Signed-off-by: Hinko Kocevar <[EMAIL PROTECTED]>
    Signed-off-by: Samuel Ortiz <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 net/irda/irlmp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/net/irda/irlmp.c b/net/irda/irlmp.c
index cedff80..f24cb75 100644
--- a/net/irda/irlmp.c
+++ b/net/irda/irlmp.c
@@ -353,6 +353,7 @@ void irlmp_unregister_link(__u32 saddr)
                /* Final cleanup */
                del_timer(&link->idle_timer);
                link->magic = 0;
+               hashbin_delete(link->lsaps, (FREE_FUNC) __irlmp_close_lsap);
                kfree(link);
        }
 }
-
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