Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262337AbUKDTPo (ORCPT ); Thu, 4 Nov 2004 14:15:44 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262369AbUKDTPo (ORCPT ); Thu, 4 Nov 2004 14:15:44 -0500 Received: from sd291.sivit.org ([194.146.225.122]:28909 "EHLO sd291.sivit.org") by vger.kernel.org with ESMTP id S262337AbUKDTPM (ORCPT ); Thu, 4 Nov 2004 14:15:12 -0500 Date: Thu, 4 Nov 2004 20:15:30 +0100 From: Stelian Pop To: linux-kernel@vger.kernel.org Cc: Linus Torvalds Subject: Re: [PATCH] kfifo_alloc buffer Message-ID: <20041104191530.GA3996@deep-space-9.dsnet> Reply-To: Stelian Pop Mail-Followup-To: Stelian Pop , linux-kernel@vger.kernel.org, Linus Torvalds References: <20041104170632.GX3618@admingilde.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041104170632.GX3618@admingilde.org> User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 568 Lines: 20 On Thu, Nov 04, 2004 at 06:06:32PM +0100, Martin Waitz wrote: > hi :) > > kfifo_alloc tries to round up the buffer size to the next power of two. > But it accidently uses the original size when calling kfifo_init, > which will BUG. Good catch, thanks. Linus, please apply. Stelian. -- Stelian Pop - 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/