On Wednesday 15 April 2015 20:30:05 Ding Tianhong wrote: > The driver will alloc some skb buffer for hareware queue, but without > considering the case of memory allocation failure, when memory is low, > the skb may be null and panic the system, so break the loop when skb is > null and try to alloc the memory again to fix this problem. > > Signed-off-by: Ding Tianhong <dingtianh...@huawei.com> > Cc: "David S. Miller" <da...@davemloft.net> > Cc: Eric Dumazet <eric.duma...@gmail.com> > Cc: Arnd Bergmann <a...@arndb.de> > Cc: Zhangfei Gao <zhangfei....@linaro.org> > Cc: Dan Carpenter <dan.carpen...@oracle.com> > Cc: Joe Perches <j...@perches.com> >
Looks reasonable to me, though I haven't done a deep analysis to see if there are remaining problems in this area. Arnd -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html