From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH 16/20] Staging: hv: vmbus: Do not allocate struct hv_device_info on the stack Date: Tue, 13 Sep 2011 14:41:28 -0400 Message-ID: <20110913184128.GB23318@infradead.org> References: <1315936759-20623-1-git-send-email-kys@microsoft.com> <1315936796-20662-1-git-send-email-kys@microsoft.com> <1315936796-20662-16-git-send-email-kys@microsoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1315936796-20662-16-git-send-email-kys@microsoft.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devel-bounces@linuxdriverproject.org Sender: devel-bounces@linuxdriverproject.org To: "K. Y. Srinivasan" Cc: devel@linuxdriverproject.org, Haiyang Zhang , gregkh@suse.de, linux-kernel@vger.kernel.org, virtualization@lists.osdl.org List-Id: virtualization@lists.linuxfoundation.org On Tue, Sep 13, 2011 at 10:59:52AM -0700, K. Y. Srinivasan wrote: > struct hv_device_info is about 101 bytes in size. Do not allocate this structure > on the stack. The correct fix is to kill that structure entirely but implementing each attribute separately.