Received: by 10.192.165.148 with SMTP id m20csp2446599imm; Sun, 22 Apr 2018 07:15:04 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/IMq4rXFKrKA7jc+4ShoCRKNhJm3laaLxCIMg9gl8v0LDiHQpIQ26rvTQ85OiM1164AkBI X-Received: by 10.101.77.145 with SMTP id p17mr14369901pgq.275.1524406504682; Sun, 22 Apr 2018 07:15:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524406504; cv=none; d=google.com; s=arc-20160816; b=tZKc94bwDK687yrmS2gCn2IZMrwN+CBOysFV3nbqi9wZqdG2jK1K5bJosX6wJwo8wZ 0xA9iv+cD7YnYgIwR/wv9xUKO2GzlvDiP/d/RAyBiYjJ5KM4jQIJ/SWY3uzNBrcE089l vmKczu1Jbr+27xE68TwSOBpGpEEnMz80W8+k9icRS72oVK3VTwQ0VWJJIXkeQdqB/2hg rIPEf3UlZozhVi26vxhB+owGRC2E+CikjwylL3rdLeOPjvd0nMcrhRMGb67fWmnMIHsb fD3PY2+kxepUcR3jSHg+ytvavR4eAHBS2eLwzCUrIDLdIKKFNhXztCMRbzcV+kffZDKy j/hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=Zxbk11wdCoC0UCyTYNEFxDkUekoO6+l8UvDxDBeBRUk=; b=s9ibL78qRGims6DGPlLyiioKJg8e3oBhUAclMFS1AfQ1q1aK0wfpSOF8eAidxtGe47 cYnQtfnyoiS4gbvBo+/GF4shWA6Jt8yYagOjDeHPR2ewJLhQ+P2lbY+dYfY9L7/fb5if lXXpO9kTFxX31OkmCaNSit9QXKq7cDj8DLOu+yqK4OVRWJRpB9gQ0vZS2N4CaxNTJbYF NovVt9hEdf+lqv8xvyBXXHYqrfkJHCO1YdVtiOMvL47r6Xtrk5k3tw1OHULCPx9i/H/Z ulV+3BwBLx7cP9iSyoQ6gzYqaRhLm9ub46bI4cO+D5q/DzFBIpI4BmlhIo4LCGdzSOo/ hFkg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2-v6si7420129plh.387.2018.04.22.07.14.50; Sun, 22 Apr 2018 07:15:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756907AbeDVONv (ORCPT + 99 others); Sun, 22 Apr 2018 10:13:51 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:55926 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756662AbeDVONr (ORCPT ); Sun, 22 Apr 2018 10:13:47 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id E1D36CE9; Sun, 22 Apr 2018 14:13:46 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Takashi Iwai Subject: [PATCH 4.9 60/95] ALSA: pcm: Use ERESTARTSYS instead of EINTR in OSS emulation Date: Sun, 22 Apr 2018 15:53:29 +0200 Message-Id: <20180422135212.878841961@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180422135210.432103639@linuxfoundation.org> References: <20180422135210.432103639@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Takashi Iwai commit c64ed5dd9feba193c76eb460b451225ac2a0d87b upstream. Fix the last standing EINTR in the whole subsystem. Use more correct ERESTARTSYS for pending signals. Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/core/oss/pcm_oss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/sound/core/oss/pcm_oss.c +++ b/sound/core/oss/pcm_oss.c @@ -853,7 +853,7 @@ static int snd_pcm_oss_change_params(str if (!(mutex_trylock(&runtime->oss.params_lock))) return -EAGAIN; } else if (mutex_lock_interruptible(&runtime->oss.params_lock)) - return -EINTR; + return -ERESTARTSYS; sw_params = kzalloc(sizeof(*sw_params), GFP_KERNEL); params = kmalloc(sizeof(*params), GFP_KERNEL); sparams = kmalloc(sizeof(*sparams), GFP_KERNEL);