[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1440594621.8932.21.camel@edumazet-glaptop2.roam.corp.google.com>
Date: Wed, 26 Aug 2015 06:10:21 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: "Zhangjie (HZ)" <zhangjie14@...wei.com>
Cc: Jason Wang <jasowang@...hat.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
Qinchuanyu <qinchuanyu@...wei.com>, Yewudi <yewudi@...wei.com>,
liuyongan 00175866 <l00175866@...esmail.huawei.com.cn>,
Wangbicheng <wangbicheng@...wei.com>,
Yan Chen <Y.Chen@...wei.com>
Subject: Re: [Question] Usage of dev_hold()/dev_put()
On Wed, 2015-08-26 at 07:48 +0000, Zhangjie (HZ) wrote:
> Eric,
> Thank you for your patient apply.
> There is still a question,
> In receive path, driver does not call dev_hold(), when skb goes to host stack, skb->dev is likely to be used.
> If device is destroyed before that, it seems dangerous.
This is also handled properly.
Check : flush_backlog() in net/core/dev.c
sock_queue_rcv_skb() , and all functions setting skb->dev to NULL
--
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