From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A54CFC433EF for ; Wed, 16 Mar 2022 14:09:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ofnEx2YgV1ax1tnmTT6D9XWjBsHsMcBufHM8J0UTRq8=; b=lBD1/gR7pMb1Y8 zCuX3amh66MBaFZHVw63PF0IUBYfP/yrbe0P5RwwEh9CMQwfie4nTuNg2CYE81CQsFoKFeZHjGxuv dqtiDexNw8wFxYX/6rJ9AYdNhWp+yPY8G9ckLM0AYabFMaV7+UQIHGl5yGbtzimabm0B3WnOGP7xE fRhYzKTH2/Qhkc2nkrTx5UAHomUWXNcL4MJ36GiDdEV151iEw5cDG/QR8mWb3i8KxksbMndQ992J6 tlbm+GDg7uygdrq7VNSA5naO1xzaxhSxTjjlPk33q8yb7aujGAamfjHrRB4PfO3h7jWRhWUTW4dVl lDqdb6CAXGZ5wi7ZyNEQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nUUKE-00DAX0-Mj; Wed, 16 Mar 2022 14:08:30 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nUUKB-00DAW0-SF; Wed, 16 Mar 2022 14:08:29 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 7931AB81B3D; Wed, 16 Mar 2022 14:08:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94F6EC340E9; Wed, 16 Mar 2022 14:08:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1647439704; bh=bTEAVJzNEOhI/lKmrR9+/svr6T+tjoocmNyfraD9/PY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=h1yWEwnlFH9tmeVTqd6TZBfZ1MWs508WLTvjXcidNx2MtgliNe3BaY+owDlxLfYke nlw+vGKNgkCtwnxIYzZOm24cpf2hJNJCNGk1A7UNWGyzmiYZ+5kYmugCiBPAsquuf4 sdmKn4DdZCk3RROL2vmCS+fgwUV5HOOfWVddMKYA= Date: Wed, 16 Mar 2022 15:08:20 +0100 From: gregkh To: Xiaoke Wang Cc: "dan.carpenter" , nsaenz , bcm-kernel-feedback-list , linux-rpi-kernel , linux-arm-kernel , linux-staging , linux-kernel Subject: Re: [PATCH v2] staging: mmal-vchiq: add a check for the return of vmalloc() Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220316_070828_086108_F302D1ED X-CRM114-Status: GOOD ( 11.35 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Mar 16, 2022 at 12:23:05AM +0800, Xiaoke Wang wrote: > On Tue, 15 Mar 2022 16:27:38 +0100, Greg KH wrote: > > Your change just crashed the kernel :( > > > > Please be more careful > > I am sorry. I ever been told that vfree(NULL) or kfree(NULL) is safe, Sorry, you are right, I was thinking that there would be an error value there. My mistake. greg k-h _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel