Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 30 Oct 2002 05:51:01 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 30 Oct 2002 05:51:00 -0500 Received: from adsl-63-197-69-248.dsl.snfc21.pacbell.net ([63.197.69.248]:29713 "EHLO ipx.esperanza") by vger.kernel.org with ESMTP id ; Wed, 30 Oct 2002 05:51:00 -0500 Date: Wed, 30 Oct 2002 02:51:06 -0800 From: "Nicolas S. Dade" To: James Morris Cc: "Nicolas S. Dade" , linux-kernel@vger.kernel.org Subject: Re: BUG in 2.2.22 skb_realloc_headroom() Message-ID: <20021030025106.A17941@ipx.esperanza> References: <20021029211945.A17657@ipx.esperanza> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from jmorris@intercode.com.au on Wed, Oct 30, 2002 at 09:36:11PM +1100 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 720 Lines: 22 On Wed, Oct 30, 2002 at 09:36:11PM +1100, James Morris wrote: > On Tue, 29 Oct 2002, Nicolas S. Dade wrote: > > > skb_realloc_headroom() panics when new headroom is smaller > > than existing headroom. > > Would you please test out the patch below? It works. It seems a pity to allocate more than needed when realloc'ing to a smaller headroom; that's why I used skb->len+headroom as the new length, but you know this already. -- -- Nicolas Dade http://nsd.dyndns.org/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/