Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2885753pxy; Mon, 3 May 2021 10:09:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwlaUnDGxnxCJUaxDZDlhzdJg1HgEywyreu2oP6CMXgmmrw+aV6dhxQN+FdxGGPv8mTu+S X-Received: by 2002:a05:6402:3546:: with SMTP id f6mr8764539edd.267.1620061783687; Mon, 03 May 2021 10:09:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620061783; cv=none; d=google.com; s=arc-20160816; b=mCf6QuQ47wHw/suvgxKgR9nF1cG549jmdcwAyE93YdT2h/b+sBgBzKNrhp8zKqaa+d qezwg12nnFM3t5lyV7cn0b7MPbco3zQvnYhBUN2djxBMJzdTYzcMMOPfwutFoIi1VwV/ qXMKjeKPgO/pM1G8PfF8QVD6UP2/2ktmcqKRFbejo9M+oW+uqwhEgVay7tOnoYuMcFFb L/mth167r/pLT9JLwxxyUoJJbl8ZmqWNkhULxuT/hk+4vj4G5mjNaCoVXpNxEVEHQqru dpQIEUNaDnmz5gpGmWOF0LkYtZZdbVpA3o24ep4Zj6yHTZ2jxiHvZmbsdhwbHdQMz87L W8Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=YPAbP9I89aTuydbAO8tlPxQ4uIK2t9fvGXayHdlITKo=; b=gC5UfYHXCHIRVlTXjEOdVUFd8kT0U6v3vR7lnQuue+O7Hui0vEx+tddsG9Pp59G4YI MB4jr3LHB9z5+hlNlpyRdP2f4AGM/SZiSwI2KGJxbsgf1g6JU4BK0R4PM+17/dCVLYot 59/c9gK+0cyhdAPE7vGEP0hDyVncNs9M/qzUVK4L3K9/5S4f71AWCrB32QnVcviUX1OO N5rTMvxmBxHDe9BqF30FnPBhtZlv8KoIYPzm3TOsvEjegMkXT86bQlEP1wCQxfoM9025 0/jDJ4H8lNOoiXlchA2qcPUweduCsObIXmQ6hl0hcgM9rgHAuF0bpmNEgxw1MjkCAp1I BNnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZJWIviI8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id eb13si11052938edb.88.2021.05.03.10.09.15; Mon, 03 May 2021 10:09:43 -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=@linuxfoundation.org header.s=korg header.b=ZJWIviI8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237004AbhECRHs (ORCPT + 99 others); Mon, 3 May 2021 13:07:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:43348 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234279AbhECQ53 (ORCPT ); Mon, 3 May 2021 12:57:29 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0D20561155; Mon, 3 May 2021 16:55:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620060956; bh=48R4guCtmFRYjBJPQlc+uVeGjKcxBvE1ijucVcv5Mso=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZJWIviI8Raf+3VzPkOnr7Ubjv7AiKKwq4R5T7VZnLZC57HrDbJ+slhyXVDI4Aa62E kvIyk8qkekKlWebMUsymZKi8imwk9bHBABaSZMnw5gMdMMtbEffltyRIz4aKxG5NW/ JUcFi2MTIxMPJI3yDGzT2KADu80ayAuI0CH6NW5c= Date: Mon, 3 May 2021 18:55:54 +0200 From: Greg Kroah-Hartman To: Takashi Iwai Cc: linux-kernel@vger.kernel.org, Kurt Manucredo Subject: Re: [PATCH 33/69] ALSA: gus: properly handle snd_ctl_add() error Message-ID: References: <20210503115736.2104747-1-gregkh@linuxfoundation.org> <20210503115736.2104747-34-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 03, 2021 at 02:28:25PM +0200, Takashi Iwai wrote: > On Mon, 03 May 2021 13:57:00 +0200, > Greg Kroah-Hartman wrote: > > > > From: Kurt Manucredo > > > > snd_gus_init_control() does not properly return any possible error that > > might have happened in a call to snd_ctl_add() so resolve this by > > propagating the error back up the call change correctly. > > > > Cc: Takashi Iwai > > Signed-off-by: Kurt Manucredo > > Signed-off-by: Greg Kroah-Hartman > > This change doesn't look good, either. > It results in the bogus error message "version check failed". > > If we really want to fix this, it's better to call > snd_gus_init_control() from snd_gus_initialize() itself while changing > snd_gus_init_control() to return an error code. > > However, this error is really not what we should be bothered too > much. Even if a creation of control element failed, it's no fatal > error and nothing really wrong would happen by itself. And, under > such a situation, the system memory is already too tight and the OS > would hang up sooner or later (or OOM killer starts genocide). Thanks for the review, I'll just drop this change as it's not worth it for this type of "impossible to hit" issue. thanks, greg k-h