Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp571099pxy; Wed, 21 Apr 2021 09:31:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6RRvALtAWZurkQeqLnGfwKUNlREp2TAH4tqkTP8ZrhDgK6AFZrBUING0Plfgjx6npGLen X-Received: by 2002:a17:902:7c0b:b029:eb:24a:1209 with SMTP id x11-20020a1709027c0bb02900eb024a1209mr33599673pll.43.1619022674300; Wed, 21 Apr 2021 09:31:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619022674; cv=none; d=google.com; s=arc-20160816; b=BPSlQe7EGBdEUt7FWx5mqzIN+wVJ+2IQdvitmT9bGBDMMt1BW5GvT0pmtV9RAcgjww i4TM+byCfLNC/ub0Ls+bZWuExg4sKwVhtNbuiBu8nCly3jwcYbV/30xjjMzp0e1g1BHw ifIJNq28O9uX7CsHTyRPb3mGMHkBqNYKZZc++JmyF+z1k76MkskaL3gSBST6CwPQSoFB 7OQMcobLtRKfq6bcw4ITAGpVc7+gVW3WZSIQNCMSR0Fh1b2Nzb6amHhMVNAHQd0fQ7p3 OR10fk/6dSklsjyaqNjfK3U/dDEPDDx+qrfpzVTSyZ8VRCFOhKLgfUWNXN+NXXi9dqbK TDfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=HMP2FRlp/TQcNJK+ctwlPZ53AOn5EvqnjK7YLLYwEkY=; b=ShDjHsuTCXz3b4N+7aZiyVTH5Tmn/muLBmL/J10Bdm6nX852BLHsiO0q8Wl07Ptomm KDnGj9giZqCnrxtV/3ePT6bSuxJ21/78dxJ6wjHMwec+ysR4GlSntuSSRAJ3BibhpFJB sIp2MO6Nc1pOmARVLw29Zc9IZBl74hiMrJKtYOrwejcgOYFoCelhJ0yIoIw6uBAiocyb NqmCTPuWrCsrT/3NYHF9+GLxLTwQmU7h7zdQv2FNPfE6mAPjAumGT7D41ylfMe83pXmg naXloQwdRHSSP9YNJRAywgxYNZwqqBZRwpgaY0jOip0S/GiFE8x6Zimx2L3NhpQfZSO5 rL+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GB0fseaI; 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 7si2813639pfo.7.2021.04.21.09.31.01; Wed, 21 Apr 2021 09:31:14 -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=GB0fseaI; 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 S241867AbhDUNSW (ORCPT + 99 others); Wed, 21 Apr 2021 09:18:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:47284 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241497AbhDUNJB (ORCPT ); Wed, 21 Apr 2021 09:09:01 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 37C0861482; Wed, 21 Apr 2021 13:08:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619010495; bh=+SJHlG+PwCu0oZkIY34ydIWrMmkVGusrp8MCOvsSCw8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GB0fseaIYP7yLqK6BVTsIxW0aUL+6FLwvfKWOe73/NoFSOpleZRMAABJ0wS0/ACv3 PK3PThZt1Q1VeXyhH7ZoJ/xL2ks4DsbFkisni5gHYn8AInY3LyGUDzT2xJunVBsZUY NG9b9AEPe34Zvp9i/QYEmUmHU2iNhrh0s17Qei+s= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Aditya Pakki , Takashi Iwai Subject: [PATCH 158/190] Revert "ALSA: sb: fix a missing check of snd_ctl_add" Date: Wed, 21 Apr 2021 15:00:33 +0200 Message-Id: <20210421130105.1226686-159-gregkh@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210421130105.1226686-1-gregkh@linuxfoundation.org> References: <20210421130105.1226686-1-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This reverts commit beae77170c60aa786f3e4599c18ead2854d8694d. Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota). Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase. Cc: Aditya Pakki Cc: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/isa/sb/sb16_main.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/sound/isa/sb/sb16_main.c b/sound/isa/sb/sb16_main.c index 38dc1fde25f3..aa4870531023 100644 --- a/sound/isa/sb/sb16_main.c +++ b/sound/isa/sb/sb16_main.c @@ -846,14 +846,10 @@ int snd_sb16dsp_pcm(struct snd_sb *chip, int device) snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_sb16_playback_ops); snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_sb16_capture_ops); - if (chip->dma16 >= 0 && chip->dma8 != chip->dma16) { - err = snd_ctl_add(card, snd_ctl_new1( - &snd_sb16_dma_control, chip)); - if (err) - return err; - } else { + if (chip->dma16 >= 0 && chip->dma8 != chip->dma16) + snd_ctl_add(card, snd_ctl_new1(&snd_sb16_dma_control, chip)); + else pcm->info_flags = SNDRV_PCM_INFO_HALF_DUPLEX; - } snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV, card->dev, 64*1024, 128*1024); -- 2.31.1