Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp893966yba; Thu, 9 May 2019 07:34:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqykdrk1ZRoSefPUHxFhUUKIPvM5HaEwmOI1tlAvCI7zYfLaW9qUNyiFWA/qAAJML4eWjDTm X-Received: by 2002:aa7:8383:: with SMTP id u3mr5543693pfm.245.1557412469239; Thu, 09 May 2019 07:34:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557412469; cv=none; d=google.com; s=arc-20160816; b=eQzcnFi7zXakk/vtAnnAAUDzkrv4xO6GjVYKUMM4qJmxK0rv48GPqwa69FB6EXgJ+f xNcJSzPL858FJHfcWpmqr3SLmLr/TY0TjSSnpwyGjx7Z9IQ9Ww6NsUrGpd7MXvfzWsKN +oUmeRcvrQB9bI8y6je+aN/+NdDGskotayQdQPHC+QVpNn1aZcMf1cJX1ohMfo6Ygu9v eWVmXdc30rzrbwlX1sUFKbbgM9QVoTjdCzIj4/UKpub4+jpe1dBF5kpLQbXTK6nDagfz l7YovSulicXI9qauNYlqvZiBIU6xQ3C397eI1GF1gt6Hl/ynaxFg/fxLHU7Ab0FwCeEP 8YZg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=D+SsrzoNpQgBrEI0oEjOWdRGLBU/6jsgYXsblG/xErA=; b=kPFt9noA5VZkxhngZHDvCF2alkLy6uHhqOZMvXg3F9/V41aPRuuTfHgxYIGmvFQ4iF 157dHcanRrpLjiFE+TwX2ZZE0Vu8QJSMg3MP4Q/Abc8Ui8ZOWE+i/EeN/02mEISdymsE 9acKH5VrPVJmNgroZoc+YPlbzL8u5BU5GAAXs+QGu+onQIO1BGDKZYLb+mOROPxGBtfK Mk0NOaVGIboeReN3VBkJ3/fsmMtXLkXaV/whY8NNtnWPFmiTzclzie9+32fHgm/y8qlA 7IAx+DN3/KCqxXJDBd8AhptYXwrU281OD7J7fDjAq7B0Sef5Q0vgoRdmiL7WrlINVjWo 1sFg== 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 u63si3190718pfu.88.2019.05.09.07.34.12; Thu, 09 May 2019 07:34:29 -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 S1726747AbfEIObx (ORCPT + 99 others); Thu, 9 May 2019 10:31:53 -0400 Received: from mx2.suse.de ([195.135.220.15]:44650 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726558AbfEIObv (ORCPT ); Thu, 9 May 2019 10:31:51 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 9E8A6AC7E; Thu, 9 May 2019 14:31:50 +0000 (UTC) From: Nicolas Saenz Julienne To: linux-kernel@vger.kernel.org Cc: dan.carpenter@oracle.com, stefan.wahren@i2se.com, Nicolas Saenz Julienne , Eric Anholt , Greg Kroah-Hartman , linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devel@driverdev.osuosl.org Subject: [PATCH v3 1/4] staging: vchiq_2835_arm: revert "quit using custom down_interruptible()" Date: Thu, 9 May 2019 16:31:33 +0200 Message-Id: <20190509143137.31254-2-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190509143137.31254-1-nsaenzjulienne@suse.de> References: <20190509143137.31254-1-nsaenzjulienne@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- .../staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c index a9a22917ecdb..49d3b39b1059 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c @@ -514,7 +514,7 @@ create_pagelist(char __user *buf, size_t count, unsigned short type) (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; } -- 2.21.0