Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp845595ybi; Fri, 12 Jul 2019 05:36:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqyU1igdcKeEzyxG7QIHqULTfs+WGE+2Z6Cz9ztpnxwRxdyv8xxA4jvdwi0wxveQpxaVriPG X-Received: by 2002:a65:6216:: with SMTP id d22mr9796807pgv.404.1562935000034; Fri, 12 Jul 2019 05:36:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562935000; cv=none; d=google.com; s=arc-20160816; b=jLqRWI7f9DQLuqqe675KiVvPoE9pKLhZYHWDRz8vtgtBo5zhpfNA4yAJbQ0AhAxlR8 PvFiRPi4y1VC8cRuGuUKDwfZLdXrOnSPvjSJ6yApIO+DUt8cxJjvc9eib3PKGAvUJoAN BwpEUTQWxcPpD65lnWcSSkhfah3HRcCgMvAzMaBCB/C5ZHbSkK1I39O3vJe6badGeuOl 1jjHl9HM8hl/Cd0O5z7Q3Y3LJZdVN24zjJzyOeQsBpxee9CkxPs6rRWqzOmsz+ack98q 6oySibEc3TM42lI9S1+rOET68/uRfjxgN+AR9EmqT8IvQGgOww7vH4VGWamhwogSOx0X UXdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=hOCqyg28xb4anJJonTNgQ/kXQkq8U1V9z8EC9GYFLLA=; b=ZsyJdZoqTRmfF5T9OBGTVPREs+jybyQMlX6AifnNocZux4RIvvSfIG3V4xf05i2iRB daBNy0XpkEnHi0wyiiKIRT/RTfoveEGRfh4j8HnuMilGJbR/02D6Iq5OZV4IBXRx/GVU rFdUiWFXQssbVXid4al5myAeL747wOwvqmMLjfek8VPIrdwexVoXUjI1J9iSCa6Ih2AU XGXKxc3QOdeEW4qQ/luyRf4aFF2T9fOUf+nDO+QT0DjBnMB0K8ZooQoiEPiUnIGideZp lLKn3fsgln3DQ3lnAabqMSVnzBSkdho/+9dab+nsND+q31yFQCyqPmp2uTZhhWWO5Jsj X9fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=A8ggqw8d; 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 70si7804715pla.2.2019.07.12.05.36.25; Fri, 12 Jul 2019 05:36:40 -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; dkim=pass header.i=@kernel.org header.s=default header.b=A8ggqw8d; 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 S1729719AbfGLMeS (ORCPT + 99 others); Fri, 12 Jul 2019 08:34:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:53984 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729350AbfGLMeP (ORCPT ); Fri, 12 Jul 2019 08:34:15 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3F8B220645; Fri, 12 Jul 2019 12:34:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562934854; bh=bMDBISCFA1Y9UGDCNYOasL4S4+ir75q8XGtLoIPGPmQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A8ggqw8d2oUON48KII1lgClrFCP78RHyIM5XYjf0X4T6fmSndrGN4yRt5BBFiQkYX PU6QFgmHChCgLnJPjXbJomVuj/e9+QyX6H4c8jkvWqE8dgOYzh+sTCkLsBvWgFKkD2 J+gWI80KCwd2hUDdMIpTvHFFpwK1ssDnlnR4Mtlo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nicolas Saenz Julienne , Stefan Wahren Subject: [PATCH 5.2 53/61] staging: vchiq_2835_arm: revert "quit using custom down_interruptible()" Date: Fri, 12 Jul 2019 14:20:06 +0200 Message-Id: <20190712121623.580255307@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190712121620.632595223@linuxfoundation.org> References: <20190712121620.632595223@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nicolas Saenz Julienne commit 061ca1401f96c254e7f179bf97a1fc5c7f47e1e1 upstream. The killable version of down() is meant to be used on situations where it should not fail at all costs, but still have the convenience of being able to kill it if really necessary. VCHIQ doesn't fit this criteria, as it's mainly used as an interface to V4L2 and ALSA devices. Fixes: ff5979ad8636 ("staging: vchiq_2835_arm: quit using custom down_interruptible()") Signed-off-by: Nicolas Saenz Julienne Acked-by: Stefan Wahren Signed-off-by: Greg Kroah-Hartman --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c @@ -523,7 +523,7 @@ create_pagelist(char __user *buf, size_t (g_cache_line_size - 1)))) { char *fragments; - if (down_killable(&g_free_fragments_sema)) { + if (down_interruptible(&g_free_fragments_sema) != 0) { cleanup_pagelistinfo(pagelistinfo); return NULL; }