[PATCH 3/5] [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] --- net/irda/irlmp.c |1 + 1 file changed, 1 insertion(+) Index: net-2.6/net/irda/irlmp.c === --- net-2.6.orig/net/irda/irlmp.c 2007-11-25 05:54:02.0 +0100 +++ net-2.6/net/irda/irlmp.c2007-11-25 07:12:13.0 +0100 @@ -353,6 +353,7 @@ /* 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 netdev in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 3/5] [IrDA] irlmp_unregister_link needs to free lsaps
From: Samuel Ortiz [EMAIL PROTECTED] Date: Mon, 17 Dec 2007 00:46:51 +0100 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] Applied. -- To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH 3/5] [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] --- net/irda/irlmp.c |1 + 1 file changed, 1 insertion(+) Index: net-2.6/net/irda/irlmp.c === --- net-2.6.orig/net/irda/irlmp.c 2007-11-25 05:54:02.0 +0100 +++ net-2.6/net/irda/irlmp.c2007-11-25 07:12:13.0 +0100 @@ -353,6 +353,7 @@ /* 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 netdev in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html