Received: by 10.192.165.148 with SMTP id m20csp2468720imm; Sun, 22 Apr 2018 07:40:52 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+cNGlvtkSFsiW7tDSLdWNqgEA4SLJMVDYhupNznQLgGqUlcSRqDaEp/h+nTTCvWSF37dLq X-Received: by 10.98.89.89 with SMTP id n86mr16840789pfb.158.1524408052843; Sun, 22 Apr 2018 07:40:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524408052; cv=none; d=google.com; s=arc-20160816; b=c3rF3RZERAVtAIR+0/LQuHezzZU0omN7keiJkRJDlrvLjDeyamSpQnlV91rnS0/Hf/ tmSVXdO+DmIPMg9+vRlTUlEhtuussjv0j8VXYSpfyPHEIVysj6ZgAxlahHnqV696cdxg 0Qvg0AgbHC/40NgOH7wDfWYcCChwt+bJDj775ky5C+y+9TY6IaMEm/N98ujk5Lir1W9W e8zDWOVgHb87SJGDSjUPO3AJXf9aeo0xwrwF6QWMt+N8qZ7y+PWXlpK4WuCZGfbXDbzX wMa7N9+XPQ1MPVQT1qMH/BkhC08wi5Ur5dL8ZaQlYAi0Kt8li2FmI98VWEugfWoKnHiZ xd0Q== 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=HVj9acYjh5BMs0TaVUhz1OcJ1IihgpdlglPRNET40nQ=; b=LQ7qxFsLFfV280wasE4IstPDwNRkVg4wBPqnEQ1n9K6R8Dqh7im64c/fqLTPrLgvxI Y0fip5xY8dDtTCOGB4fPVnsRiurJfu5vJX6hSWQzG2/BvtABBPHEI7maW09n4nTPrQW2 yxAiHA+JGAYFY6t6r2/yxHLuO9I9yS70idrUIiL0AeF7hkr/9K2rat7fAaH0PW/YnQEL sjBvd0cQS74xTYNwf6ZnMQ6Nnwj2OvMCQo1vYnFyqND1eXZXrM7XAOCQpzWyfLF3rAYK q9N/L175jIgFX9e44+dxpXGolK7emR43LD8o3tDxQCllpdugrCZOGBvcUzVOmiZ/fl+3 +04A== 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 b2si8345252pgn.131.2018.04.22.07.40.38; Sun, 22 Apr 2018 07:40:52 -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 S1757326AbeDVOjj (ORCPT + 99 others); Sun, 22 Apr 2018 10:39:39 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:58764 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757201AbeDVOSJ (ORCPT ); Sun, 22 Apr 2018 10:18:09 -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 A6AC8CFA; Sun, 22 Apr 2018 14:18:08 +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.4 66/97] ALSA: pcm: Use ERESTARTSYS instead of EINTR in OSS emulation Date: Sun, 22 Apr 2018 15:53:44 +0200 Message-Id: <20180422135308.904437764@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180422135304.577223025@linuxfoundation.org> References: <20180422135304.577223025@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.4-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 @@ -852,7 +852,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);