Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755525AbYJMONk (ORCPT ); Mon, 13 Oct 2008 10:13:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753488AbYJMON2 (ORCPT ); Mon, 13 Oct 2008 10:13:28 -0400 Received: from relay.2ka.mipt.ru ([194.85.80.65]:59544 "EHLO 2ka.mipt.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751834AbYJMON1 (ORCPT ); Mon, 13 Oct 2008 10:13:27 -0400 Date: Mon, 13 Oct 2008 18:14:49 +0400 From: Evgeniy Polyakov To: Pekka Enberg Cc: Andrew Morton , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: Distributed storage release. Message-ID: <20081013141449.GA30768@2ka.mipt.ru> References: <20081006160034.GA611@2ka.mipt.ru> <20081012192419.fd8394c9.akpm@linux-foundation.org> <20081013133850.GA13565@2ka.mipt.ru> <84144f020810130644w7f89f3d9m3c3d3e63d3034534@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <84144f020810130644w7f89f3d9m3c3d3e63d3034534@mail.gmail.com> User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 900 Lines: 24 Hi Pekka. On Mon, Oct 13, 2008 at 04:44:28PM +0300, Pekka Enberg (penberg@cs.helsinki.fi) wrote: > > What's the difference? In saving one space and replacing another with > > comma? I do not particulary care, but would like to know why it is > > needed :) > > kcalloc() will check for multiplication overflow which is nice > especially if size is passed from user-space (not sure if that applies > here). I think that 32-bit overflow check during multiplication in allocation code is the last thing to worry about :) If this parameters are not checked before, we are screwd already... P.S. DST does not check one of them, oops. -- Evgeniy Polyakov -- 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/