Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp848895ybi; Fri, 12 Jul 2019 05:40:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqwoSQcFl2nuWSQCtTgFUU7oelfrYVUWCsuWpf3W0HiiNc5fqGbffIK1EjYHX/6GSiAxaCZI X-Received: by 2002:a17:90a:228b:: with SMTP id s11mr11276390pjc.23.1562935205500; Fri, 12 Jul 2019 05:40:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562935205; cv=none; d=google.com; s=arc-20160816; b=lONTQ12wM2n2aFvlXXvaaoRe8fM5/odGAO0rlTwSboldoGo7SlFXEov2WqFRB+baoD CmdWx6T8qqnW4M13UihRmRy+VQxuRl3VQWkJ3q39GqHs1mVdN3GDnLgtd9bPBJC490Sx UeuYPggid0MX1nfyQPnNyWpc0dWjkzcz6VeEiLIgb9xrg8DqWMENqDMegkEX+dEIpBij SWtDHvJ1O0XHJ5VXnd1TAzmZDREr+3Pl2ykkqbubjSV9sVpp5HpgcINxb/TUAfkT+qKR wiEboaZC7FIMHZqG2nf0oFpdU7jp3P1nsHMfmKFFmeSWPRsqYldDiyN+kzo7uVk4mBWb 8SYA== 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=QW6hjh4QkfQD//tj1JwC/stA/mUpfr13KC8q6ptAPrc=; b=yVocO4rLVOk6JJsNfWppE4foB12lfJCyAjqopfq9X+dyUXXDgMEQKHJ5sinNHFF7D6 s9ekkxuj39rX3trZVa/fMvlcRa0V1MtAWc6huyIlEM+YcdyuCu9TraXf6UJPudYMaRKp Y6YHoZh4rZ2C+Dld+VQrwmulu3ty4lIDr2UDPumaDmrzB8qr34IVbHf1CshB8cRD8t6+ vL9FaO+1OMtMjYFaC7SjqnEpVAE7sw7LQfnD0iOyIMbClCU7oykzFXujrKyxpM6UHEm6 z2YLVCJB8B+orG4QtzdWUDAgf37+ah72QJNjUHhCVGcl3Vfz/x2tQCAsLTgONDdEityR uTkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="cg8l/ihB"; 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 g9si7767900plm.207.2019.07.12.05.39.50; Fri, 12 Jul 2019 05:40:05 -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="cg8l/ihB"; 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 S1729302AbfGLMbG (ORCPT + 99 others); Fri, 12 Jul 2019 08:31:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:47404 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728925AbfGLMbF (ORCPT ); Fri, 12 Jul 2019 08:31:05 -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 B9D462166E; Fri, 12 Jul 2019 12:31:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562934664; bh=QaG2Xvm2G6eZQNV9BGAb4s4cN88lVMswx2BQRGp8/4s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cg8l/ihB4uvyMjnjbcAS5YR0YxljtvnSucUglvC2Ert+23r9LjYAum9bQg2S3Ud33 lfuYZstRUcK4gWw036kIWQGpZB2rhHqykLxhS0LPbyb/BBNYHlKiQS6VEFKfpeub2C Khs7A707tvvSIarlghL5PcS4jhv5G+5FG32wNYiI= 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.1 130/138] staging: vchiq_2835_arm: revert "quit using custom down_interruptible()" Date: Fri, 12 Jul 2019 14:19:54 +0200 Message-Id: <20190712121633.711116469@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190712121628.731888964@linuxfoundation.org> References: <20190712121628.731888964@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 @@ -553,7 +553,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; }