From: Stephen Hemminger Subject: [PATCH 2/6] netfront: rx counter should be unsigned Date: Wed, 17 May 2006 14:28:37 -0700 Message-ID: <20060517142837.14c09645@localhost.localdomain> References: <20060517142648.439befd9@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20060517142648.439befd9@localhost.localdomain> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Herbert Xu Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User shemminger@localhost.localdomain # Node ID a471b0faf794558e8cc0cd595b293f45924a561c # Parent f767d5dc33930e12d267ccf4a0fbe908414d06e2 The receive buffer accounting should be unsigned to avoid range comparison issues. Signed-off-by: Stephen Hemminger diff -r f767d5dc3393 -r a471b0faf794 linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c --- a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c Wed May 17 20:41:25 2006 +++ b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c Wed May 17 20:43:22 2006 @@ -106,7 +106,7 @@ #define RX_MIN_TARGET 8 #define RX_DFL_MIN_TARGET 64 #define RX_MAX_TARGET min_t(int, NET_RX_RING_SIZE, 256) - int rx_min_target, rx_max_target, rx_target; + unsigned rx_min_target, rx_max_target, rx_target; struct sk_buff_head rx_batch; struct timer_list rx_refill_timer;