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 3820AC61D9B for ; Wed, 22 Nov 2023 18:34:19 +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=l4PR8YC5N2LkuV+xVURO4BBEZNMQfPhhO/9Hax9tBrk=; b=xj7ZNCIQMwKPS9 VMfzV4iMzmfTh3YogbBZfwvrhq3kHmC2iS1Bd2YfOk2NRIaF7G5StjGa1dop7zS643RwrLzezVCJz jL4fidwTem1DlbE8xPCxtVPX5OcJ9ZV7KXzXg1fLaTYc/qLbT1ktvQAGMG9IUhce4pVeeh6S++e7q RD58MoK2IxAAVeucOY7RryZUUxthU/EyA+DCeN1SG8uWaq4jHtq+F2IedDVTZvSxJuV0OqWvSAPlf TSj3OjXEBzlli4akiMFXitJMepxrxbqp0O67SL2Gg2KS7mKTuwq3v07D81LH92qIV/It+EhuEG8KI 6FlROiVaNZA4dGPoqA2A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r5s2t-002pnf-0Q; Wed, 22 Nov 2023 18:33:55 +0000 Received: from mgamail.intel.com ([192.198.163.7]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r5s2r-002pmo-0D for linux-arm-kernel@lists.infradead.org; Wed, 22 Nov 2023 18:33:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700678033; x=1732214033; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Y1RQ+f1Q5efZzIZfRLadFxuw8IiQKXJxuGko9Zmlt9s=; b=mds+kbC00mceEiWtAkuVk2BLGinyxN2SgALVf1pYhiHS+NEf/hX3z7IU 11DZuj14G5bBDaCG2OwwNnT6UChVYm8w/PB/f9Pn8hxWfDEEwNqpHcl5G i+0gPsddoHfhPpIvr4ehX6sm5dJwGHG9SBpM5tkh7evtRlzc+qmsyHZ1b nAHSVlQPoELVw5xQOHkzK1aF+tpaQSFi7RH4jelHnP1TLX8DB+9GCHMU+ l2d/lCFXb1u1IQZaOl37h/sk/NoM9UhaTWeJtQOOC98lRjIxsYCXexDSQ 1pHlaZAQNla3NGy5MjzdrcBvPk+lxCKdOXUC9PUjM6EilpsLxiLp+/Ps+ w==; X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="13671878" X-IronPort-AV: E=Sophos;i="6.04,219,1695711600"; d="scan'208";a="13671878" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmvoesa101.fm.intel.com with ESMTP; 22 Nov 2023 10:33:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10901"; a="743344455" X-IronPort-AV: E=Sophos;i="6.04,218,1695711600"; d="scan'208";a="743344455" Received: from unknown (HELO smile.fi.intel.com) ([10.237.72.54]) by orsmga006.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Nov 2023 02:51:16 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1r5kmC-0000000G49b-3FaF; Wed, 22 Nov 2023 12:48:12 +0200 Date: Wed, 22 Nov 2023 12:48:12 +0200 From: Andy Shevchenko To: Kunwu Chan Cc: gregkh@linuxfoundation.org, joel@jms.id.au, andrew@codeconstruct.com.au, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kunwu.chan@hotmail.com, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] usb: gadget: aspeed: Check return value of kasprintf in ast_vhub_alloc_epn Message-ID: References: <20231122014212.304254-1-chentao@kylinos.cn> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20231122014212.304254-1-chentao@kylinos.cn> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231122_103353_129216_682FC131 X-CRM114-Status: UNSURE ( 8.38 ) X-CRM114-Notice: Please train this message. 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, Nov 22, 2023 at 09:42:12AM +0800, Kunwu Chan wrote: > kasprintf() returns a pointer to dynamically allocated memory > which can be NULL upon failure. Ensure the allocation was successful > by checking the pointer validity. OK. Reviewed-by: Andy Shevchenko -- With Best Regards, Andy Shevchenko _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel