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 84D4BC433EF for ; Mon, 13 Dec 2021 09:45:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235718AbhLMJpH (ORCPT ); Mon, 13 Dec 2021 04:45:07 -0500 Received: from smtp-out1.suse.de ([195.135.220.28]:38078 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234542AbhLMJkc (ORCPT ); Mon, 13 Dec 2021 04:40:32 -0500 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id B42A9210DB; Mon, 13 Dec 2021 09:40:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1639388431; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=0H3lGO4UK1VuB0BScueS62+oa3isQQCH9ZYXxtcZvXg=; b=ZEZch+t2tjGb2AWmdCzLXJaOesqM7FcC3HRCm0jhzcm11sgKonBO6YrgM51KOpu57DlHok JCJJDLAmAJHGXdTbS2mj8Xx2MZ/nAborA1SlBFqi9tmiUDHqL4j9G0HykeuSvSdsFiLn0j w4U2VHpwO0OBjJ9OtVB9C2a3elWd2J8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1639388431; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=0H3lGO4UK1VuB0BScueS62+oa3isQQCH9ZYXxtcZvXg=; b=djX/CfCbWaxZYUmZiZ5Fsh//3cSr9IU3kv/LHjkUDtLa4+mbJ5wWfbBhMQj5YdeuSNZCiE kyleWh8WtvLCQgBw== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 82BFFA3B83; Mon, 13 Dec 2021 09:40:31 +0000 (UTC) Date: Mon, 13 Dec 2021 10:40:31 +0100 Message-ID: From: Takashi Iwai To: Xiaoke Wang Cc: joe@perches.com, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ALSA: jack: Check the return value of kstrdup() In-Reply-To: References: User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 13 Dec 2021 08:39:31 +0100, Xiaoke Wang wrote: > > kstrdup() can return NULL, it is better to check the return value of it. > Fix: free jack and use my full name. > > Signed-off-by: Xiaoke Wang Thanks, applied now with Cc-to-stable. BTW, when you submit a revised patch, please put 'v2' or such to the patch subject prefix, e.g. [PATCH v2] ALSA: jack: ... Also you can put the note about the changes between revisions as v1->v2: Fix something more.... and this could be put after the first '---' line (around the diffstat) if it's not necessarily to be included in the final commit log. Takashi