Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1862723pxm; Thu, 24 Feb 2022 10:47:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJy0PCT5zvZsPovsD2ul+GgVNwqVjar9zq4HUuSftJQb/4bK+js1RcyYGXQZVpcZbNkOswTz X-Received: by 2002:a17:906:9f03:b0:6cf:ec29:fc3a with SMTP id fy3-20020a1709069f0300b006cfec29fc3amr3270432ejc.43.1645728423841; Thu, 24 Feb 2022 10:47:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645728423; cv=none; d=google.com; s=arc-20160816; b=dJl36n5j/qVvQNqLUD60EqezgBnAq3Kx+PIgKqjaSaewxivoSL0fJlo1zmjGDyCzJ3 HLjPg2OSvz+E6ajkRa26i1ZpHAp7cdjpEz58lIeOz5oNW/zE5zszszTbFT1jZkTzOPeh lnoz+yE/ft8lZe0Iudfz+V07ZN8C70116SORZC5/uxgFzeWDL7FQhgXeGkbFUdmuicAx KCeYM60j79fFRSzC/I3B/Ozk+H0nPDYud4w62NEOXgnVZ1BLmxFDMjsIvBVZKgLKKhsZ OmOD3lsICNsaB2ZL7kDC/fpHzdOhaR79DS8VQ6uD0i98NoC2a905AfCSobqI1O9eNK4j nBqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=g8Oih8UvOFR9mI84+rCDbZS9/xn/nV66OrwaVOfA0l0=; b=Hxgy7IlIlMPZqFc/t6GrBbYOHO6Zwm5nf5z8sztr19Ox8Qm3uymk/EO0XX2+Vd6cRq CMp7U/F4YE0/9rPFpUY4F9oPJ9IMTyUW/Bp9ZVulcNEJZk9H/i+ZO+6gCOvAbdrbSIVY ZD4E8YAmv8r2VJR0+waoHl+2NzQMmKKoZ8YeJvNSUCvQkzMvHougpl9Rp3Si2i0XLz3+ OXkPf6OwDG2dEgxCSpuUE3Ng6BWwutZMAA9rzIMYqr7uicE/cy/XYUXBZkraJyc38E1K sYHNX9RiMm8EGu0jlx6k1TT1WFtKJ100AHMHkSnkMts/Zp7K7oR4WS2nK94Uy6RYH+EJ 0rYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EGOnyT8t; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c19-20020a170906171300b006cf6b54b376si134328eje.455.2022.02.24.10.46.40; Thu, 24 Feb 2022 10:47:03 -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=@intel.com header.s=Intel header.b=EGOnyT8t; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232477AbiBXSGN (ORCPT + 99 others); Thu, 24 Feb 2022 13:06:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229662AbiBXSGM (ORCPT ); Thu, 24 Feb 2022 13:06:12 -0500 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66C49270252; Thu, 24 Feb 2022 10:05:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645725942; x=1677261942; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=hxBAdTR0owOoMKt0GpG1ZgSex/03IjMwvi0Jz7GXfd8=; b=EGOnyT8tOl/v9zJVaF1UoHGTHd5I5TdNF0SO4VVeG7Nv6aL52l4z1Mxt rpS5wvqV2FO5z2sRL6Zt8MO1hG3IzbU2upacbE9EyKMWxs5uiYdQ/flN4 lKROVaO9iSNt3LLr7nBpOCriTax2dnCogiYgqq91w5XxsEvbADVKlJuk6 Lw0yB6VrAWknR95AG6JimIt1p9UlqzvdIhNQDqxUrBF/C3s5DIaGETbXu k9ojEFXcIAEO/+cZla5qMqzAXrpLYSW9z/MbLVJUi27V6vNvh+8DdustJ UpnEQE94C2Q0FykwrDCQTc2d2ZCvZ1clzelV5dPSHp7tmCkZfFIUn/OPV g==; X-IronPort-AV: E=McAfee;i="6200,9189,10268"; a="252039190" X-IronPort-AV: E=Sophos;i="5.90,134,1643702400"; d="scan'208";a="252039190" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Feb 2022 10:05:42 -0800 X-IronPort-AV: E=Sophos;i="5.90,134,1643702400"; d="scan'208";a="533236249" Received: from ronakmeh-mobl1.amr.corp.intel.com (HELO [10.212.97.131]) ([10.212.97.131]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Feb 2022 10:05:40 -0800 Message-ID: <04e79b9c-ccb1-119a-c2e2-34c8ca336215@linux.intel.com> Date: Thu, 24 Feb 2022 12:05:30 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.5.0 Subject: Re: [PATCH] ASoC: SOF: Intel: Fix NULL ptr dereference when ENOMEM Content-Language: en-US To: =?UTF-8?Q?P=c3=a9ter_Ujfalusi?= , Ammar Faizi , Mark Brown Cc: alsa-devel@alsa-project.org, Kai Vehmanen , Rander Wang , linux-kernel@vger.kernel.org, Takashi Iwai , Keyon Jie , stable@vger.kernel.org, Liam Girdwood , Ranjani Sridharan , Daniel Baluta , sound-open-firmware@alsa-project.org References: <20220224145124.15985-1-ammarfaizi2@gnuweeb.org> From: Pierre-Louis Bossart In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, 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 >> From: Ammar Faizi >> >> Do not call snd_dma_free_pages() when snd_dma_alloc_pages() returns >> -ENOMEM because it leads to a NULL pointer dereference bug. > > Reviewed-by: Peter Ujfalusi Thanks for this patch. looks good and tested by our CI, so Reviewed-by: Pierre-Louis Bossart