Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1181188pxj; Sat, 12 Jun 2021 00:33:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzi+iz6Nw+1a3jjMWPP0DDzQQhKMTUJorVhGxil5mmNxs4MZf7s8oJryG3BoHPskSg3pNSg X-Received: by 2002:a17:906:2a8e:: with SMTP id l14mr6861230eje.549.1623483198163; Sat, 12 Jun 2021 00:33:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623483198; cv=none; d=google.com; s=arc-20160816; b=iTUABfRfcwqtMWNHdcxRD0Tbhgi2ars34f818u6TSf+O3GeTcYMvhsatObPzjvhKvs P3EhGzus0lXaZZAVErv4+7pVFEpMtji1R7zs75qj6BrWCT/vxHzPjo8vcME/HuL85mhw OEfgBB1ZTHGDBnZWSw8pxS5BEdZX68+nE2pqXQd+7VRreHSzI4PaQpiaflzeknI+zQn5 Eo8HMK+S12CsQfs5pQRF5Sa4GWvz1+FTCO5o9AAx4V3hBlfe9H8I1/c2ZOlhb7Yoahzi R34lDQEbluIORzfaDdiXmPWh9hDsjYknB9jNDcSZfwB6n6fiz6QGfLT35k54HmQ/n8rI KTNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=0AzuUkzLo4ruyuK5SkVmh+ZfHnjfIQeuO610XtpJtoc=; b=zNEsxi56vnCUqBHdsf0Y2Fjvth9hHnxsFVc82OaRY8DdFMFSY1jQBy0XyEcQ9QzwyD WNaOfzhtCXgWo3O/92ZEM1lM3AnAddUArQaTcZcwlLt/WZmi82DrSj1Pwe54D/4GTZ+g YOZH8/q4vQ9//ja9Vwkiz6j824rytdQ44tITaVPHOcPmscD9mNKTOWQRW5qCRx+Qvj4/ bma5yHudtp3pt7TMcQDniRPaYcdBu/SljiJoDRIvyahfnqahFbE+qUFiVx+3Qpwb8NG8 ByhJpoV96XiXwDpTMQb3ZJQ9dxUcMba2U3YR3zJL8My343uuWsFK8dcFBZgWx+fT0Z93 +RTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Th8MmK48; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x7si3571967edd.288.2021.06.12.00.32.55; Sat, 12 Jun 2021 00:33:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Th8MmK48; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230400AbhFLHdZ (ORCPT + 99 others); Sat, 12 Jun 2021 03:33:25 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:47714 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229942AbhFLHdZ (ORCPT ); Sat, 12 Jun 2021 03:33:25 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 717F51FD7B; Sat, 12 Jun 2021 07:31:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1623483085; 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=0AzuUkzLo4ruyuK5SkVmh+ZfHnjfIQeuO610XtpJtoc=; b=Th8MmK48g6ot7pnJc9RJa5NxgHqdKafjyupDDILXFgTJFqWxZV5jDYLcYpc6rEpqOS+qxB DO8XZxUxVZmt7qWLL7Bb4H+AdxzJia/2isAqc0AfOmILjW0D3yB3EV+NE5twUtIB7eJOU8 MDucw0jD/isO2O0ntmm/xqlGPZc+1NA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1623483085; 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=0AzuUkzLo4ruyuK5SkVmh+ZfHnjfIQeuO610XtpJtoc=; b=tkMVi0+QeY0xP0fnmRmMKT5kFSL5KTNWmBTcOO0NwLZ7HZl5Q3WlfQ5qxBpAfZrbE5SnP6 98sxcfdLVwRiJABQ== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 618D0A3B85; Sat, 12 Jun 2021 07:31:25 +0000 (UTC) Date: Sat, 12 Jun 2021 09:31:25 +0200 Message-ID: From: Takashi Iwai To: Yang Yingliang Cc: , , Subject: Re: [PATCH -next] ALSA: n64: check return value after calling platform_get_resource() In-Reply-To: <20210610124958.116142-1-yangyingliang@huawei.com> References: <20210610124958.116142-1-yangyingliang@huawei.com> 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 Thu, 10 Jun 2021 14:49:58 +0200, Yang Yingliang wrote: > > It will cause null-ptr-deref if platform_get_resource() returns NULL, > we need check the return value. > > Signed-off-by: Yang Yingliang Thanks, applied. Takashi