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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8C840C433EF for ; Wed, 16 Mar 2022 14:08:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355126AbiCPOJo (ORCPT ); Wed, 16 Mar 2022 10:09:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231887AbiCPOJj (ORCPT ); Wed, 16 Mar 2022 10:09:39 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 259AA3C490 for ; Wed, 16 Mar 2022 07:08:25 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id B55B761209 for ; Wed, 16 Mar 2022 14:08:24 +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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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