Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755048AbXKZKYP (ORCPT ); Mon, 26 Nov 2007 05:24:15 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754564AbXKZKXv (ORCPT ); Mon, 26 Nov 2007 05:23:51 -0500 Received: from rv-out-0910.google.com ([209.85.198.186]:14926 "EHLO rv-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754235AbXKZKXt (ORCPT ); Mon, 26 Nov 2007 05:23:49 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=F4/p4XrPILP+gkG4ziy0c2QVxxflB/8FbsvIWJzKSXTua6REWi0H2+F78nMtxuSTIHxu2C1KhSxxyXFYyabI+ujk5Cvaq2MwkbUBTO1UIWFVzYPsn3WBEEWpFg2DPgo5JzDpoQkEMbh+YF4tu0QRHBk6XW7+3oPUHpdXpu/XZuw= Message-ID: Date: Mon, 26 Nov 2007 19:23:48 +0900 From: "Joonwoo Park" To: "Robert P. J. Day" Subject: Re: [PATCH 4/4] atm/ambassador: kmalloc + memset conversion to kzalloc Cc: netdev@vger.kernel.org, chas@cmf.nrl.navy.mil, linux-kernel@vger.kernel.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <007f01c8300b$1b89ac40$9c94fea9@jason> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 864 Lines: 21 2007/11/26, Robert P. J. Day : > i'm not sure the above is a safe thing to do, as you're zeroing that > area, then making a function call and assuming, upon entry to the > function call, that the caller has done the right thing. i don't see > how you can count on that, depending on who else might want to call > that routine and whether they get sloppy about it. unless you're > prepared to guarantee that there will never be another call to > setup_dev() from elsewhere. > Thanks for your response. But setup_dev is static function and only amb_init calls it. IMO it's safe. Thanks. Joonwoo - 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/