Commit:     0ff804348d66550e7dd1d6781c65403b312e2da2
Parent:     497ba7f4c8113ed699a4fd793d1437f0c8f2da5e
Author:     Hinko Kocevar <[EMAIL PROTECTED]>
AuthorDate: Sun Dec 16 14:08:22 2007 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Sun Dec 16 14:08:22 2007 -0800

    [IRDA]: mcs7780 needs to free allocated rx buffer.
    While testing the mcs7780 based IrDA USB dongle I've stumbled upon
    memory leak in mcs_net_close(). Patch below fixes it.
    Signed-off-by: Hinko Kocevar <[EMAIL PROTECTED]>
    Signed-off-by: Samuel Ortiz <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
 drivers/net/irda/mcs7780.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/net/irda/mcs7780.c b/drivers/net/irda/mcs7780.c
index 0b76919..93916cf 100644
--- a/drivers/net/irda/mcs7780.c
+++ b/drivers/net/irda/mcs7780.c
@@ -677,6 +677,8 @@ static int mcs_net_close(struct net_device *netdev)
        /* Stop transmit processing */
+       kfree_skb(mcs->rx_buff.skb);
        /* kill and free the receive and transmit URBs */
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

Reply via email to