[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAMf7+LgvSXpt98T5ty_yq-cZoGnRe5Hkz-5r7D3AyOwH27yxaw@mail.gmail.com>
Date: Mon, 28 Dec 2015 19:48:24 +0530
From: pavi1729 <pavitra1729@...il.com>
To: netdev@...r.kernel.org
Subject: skb_clone query
Hi,
Just out of curisity, I was looking at Kernel 3.14, skb_clone
function in f_ncm.c
http://lxr.free-electrons.com/source/drivers/usb/gadget/f_ncm.c?v=3.14#L1063
QUERY : Shouldn't a kfree_skb(skb2); happen before goto err @1070 ?
Is this not a memleak ?
1068 if (!skb_pull(skb2, index)) {
1069 ret = -EOVERFLOW;
1070 goto err;
1071 }
Thanks,
Pavi
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists