lkml.org 
[lkml]   [2014]   [May]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] e1000: To filter the negative skb->len
From
Date
On Tue, 2014-05-13 at 11:33 +0800, xuyongjiande@gmail.com wrote:
> From: Yongjian Xu <xuyongjiande@gmail.com>
>
> skb->len is unsigned int, "skb->len <= 0" should be "(int)(skb->len) <= 0".

Why ?

Did you hit a case skb->len would be 0 or 'negative' ?

This test makes no sense, just remove it.





\
 
 \ /
  Last update: 2014-05-13 06:41    [W:0.027 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site