From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] check the return value of ndo_select_queue() Date: Sun, 08 Nov 2009 23:26:47 -0800 (PST) Message-ID: <20091108.232647.47855733.davem@davemloft.net> References: <4AF7C1FD.8000302@gmail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: xiaosuo@gmail.com Return-path: Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:39551 "EHLO sunset.davemloft.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750768AbZKIH0V (ORCPT ); Mon, 9 Nov 2009 02:26:21 -0500 In-Reply-To: <4AF7C1FD.8000302@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Changli Gao Date: Mon, 09 Nov 2009 15:17:17 +0800 > check the return value of ndo_select_queue() > > Check the return value of ndo_select_queue(). If the value isn't smaller > than the real_num_tx_queues, print a warning message, and reset it to zero. > > Signed-off-by: Changli Gao Make it a WARN() so that it ends up in kerneloops.org