Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1805855pxm; Fri, 4 Mar 2022 04:01:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJw47zhQd52eKVWCjoyuB//MGrNyr7tfWv3uionShJSkROEverwx0yHjXwPSuU0x37KY1ywY X-Received: by 2002:a17:903:124a:b0:151:99fe:1a10 with SMTP id u10-20020a170903124a00b0015199fe1a10mr12339375plh.87.1646395317259; Fri, 04 Mar 2022 04:01:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646395317; cv=none; d=google.com; s=arc-20160816; b=t7L+QP0Gv2Bor02CNHrJHz5F08fQs0/KTq5HJ1axlnF3m/CTrDpPmssmL/Mgvb7jgT C9IyrvIg43JqqmsRHt6cpG+BmvJSTOXLepiZpSPnRQQIviSq/a668dyKsGue5XZZ1laa lILCu/Wu17Twla8DkBdJC0tx10WjKGwByLKHs1HIK0/pZN4PvxVC+VmkbjRC4djkhvWu jM8A+piqOG7ERSJS4/YVTbX/x1epmzYzkh0XjIAfQnJUqA4EXubeAO/owDwWgp237FPQ MPeVAuwffS+6f3sWr6wMrJC8sf0adgqxYtoVbr+KerHoPupto2JFwkuA63jEBONCnNW+ dqfg== 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=ZODsXE6ddBfzoieQYI7aVrk0E2hJEr5ZTnIuJ9WILSs=; b=wa2fIli1Z3s7PYabDTNi6HNA/65OznWqIU0qyCTNKT9tvAMeh5E/vbXplcmJWWARmi ZVgnkJREHFRqGIvkrLHPsYBPYYD0muxDH+0sNjsV1+b+SibW9E2dhnaiSXZ+JaDgdRlv 2P1VeEKTETwhgbUz3TXI1e3SjUnChplwjsVsF1EpK7rEz07nzA0ZycNFKbsJH8od4iiD pgLtyilU2UW1/GDqbB9zZDLh/MC7rWSj6YAGCBC1jKOub+QDMskAtwwVchfGONGhL97X gtYTIVklTTabEUet58iuMfqQiNPuXo0WLExzMlKUPAUWYQCyILsLym05kgbhW9k5r4nl xQgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="taZZt/tD"; 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 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l16-20020a170903121000b00151951622f6si4817098plh.447.2022.03.04.04.01.39; Fri, 04 Mar 2022 04:01:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="taZZt/tD"; 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 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235061AbiCDIwh (ORCPT + 99 others); Fri, 4 Mar 2022 03:52:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232134AbiCDIwf (ORCPT ); Fri, 4 Mar 2022 03:52:35 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E42E19DEB2 for ; Fri, 4 Mar 2022 00:51:48 -0800 (PST) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 4D1851F384; Fri, 4 Mar 2022 08:51:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1646383907; 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=ZODsXE6ddBfzoieQYI7aVrk0E2hJEr5ZTnIuJ9WILSs=; b=taZZt/tDabNCtLvv9DOn+enqzNczyiV9Az3YvWCKoEMkbc0sQsyCMY46uftmA52yEM2OGS 0ICQxUBb3S/XcCh8UBPl7PperVRb9qiIWX4xI78/qKZh4E6M49w2qzxfqbvqfd9bUYtYQb 5bg7l/mdfqqiY7fbhPYbAwm1RVKk0lg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1646383907; 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=ZODsXE6ddBfzoieQYI7aVrk0E2hJEr5ZTnIuJ9WILSs=; b=jdPn+QcJR6h79AZCQwxl+xXp0afdG3jW8ShgOmG+rfv9jWX4vkXlkA48MpFrNi9QAD3CwH WmNEKTzpYoq6OqBw== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 3CDD6A3B8C; Fri, 4 Mar 2022 08:51:47 +0000 (UTC) Date: Fri, 04 Mar 2022 09:51:47 +0100 Message-ID: From: Takashi Iwai To: xkernel.wang@foxmail.com Cc: perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ALSA: lola: add a check for the return of vmalloc() 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 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 04 Mar 2022 09:38:20 +0100, xkernel.wang@foxmail.com wrote: > > From: Xiaoke Wang > > vmalloc() is a memory allocation function which can return NULL when > some internal memory errors happen. So it is better to check the return > of it to catch the error in time. > > Signed-off-by: Xiaoke Wang Thanks, applied. Takashi