Received: by 10.213.65.68 with SMTP id h4csp701179imn; Fri, 6 Apr 2018 07:30:51 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+K1eWizs2cToysmBdB2Yh+OAUNu1BST6GwpdUbekioVzl9p1/AyJhBiw+EOGNBuDoNjm6y X-Received: by 10.99.110.5 with SMTP id j5mr18241980pgc.246.1523025051815; Fri, 06 Apr 2018 07:30:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523025051; cv=none; d=google.com; s=arc-20160816; b=Jv3HsObhhdiJfrOgHRvIVEeTjmRiogafYC9KU9460r65b29tDhP3Pw43h4In2DT5+y jT4uE1zh+fxmMdfaNRjUuGgw/N44T2AzYK62+/FtyAjN+bcXdFzNH2UYsToAKmRaf29p GgMzOfDcT4WASll28yrh4fy8qI9m9Ky10GPQE1iTGJ0KurM/nwz5cRmRoH2rf1FfKATB vvH67u/Mwz53gT+beLkpKyYNAznM1Rd9hlhOgZJ3xwMh1uscnoz5go2vhQh06/aWmf5e t+l6WFMAGhnGmSLR8NLxeN64pkru1nOzdwc4k5FnZ898Ro/nMgKcCLTuKn5aCVuUOpYy ON3Q== 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=1bicykIlEE3LoHVHDQd+yPjD+o13jf9JekrDxEXnFS4=; b=tHR8pFJmgJZK+zd/BOWjdvCNaBokW3H7BCerYV+/Mupkw59XF/9lHoY1MVqpPJzxcY 9s8By+GI7mJxHcPoH19ZAhxmlFKi2jwJt011YRSXxYTjd6TqQrKtzI3lPQdv5UxShZTl JdiraezPt4B9cYN45vXMQzDFNHy7mPvunz1V5rVvIzOOogQZGK6FqggVzBVJSDzOfMgW UGaieBnd0adWwRXYcS5JHh+1YafrkIhu7FjyzfElCDaCf/Km3eTVidSWXB/teo23foEh wRC8JRsL9HzzkXHvo2IchYLZJx8J37iW+vAFOmatNiJ2WIuQ0cKGYIO36wdv9C3Qbnkg lEXA== 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 b14si7212551pge.252.2018.04.06.07.30.37; Fri, 06 Apr 2018 07:30:51 -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 S1756618AbeDFO15 (ORCPT + 99 others); Fri, 6 Apr 2018 10:27:57 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:33026 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932294AbeDFNhl (ORCPT ); Fri, 6 Apr 2018 09:37:41 -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 E3CB3CE0; Fri, 6 Apr 2018 13:37:20 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ben Hutchings , Kevin Hilman , Mark Brown , Sasha Levin Subject: [PATCH 4.9 102/102] spi: davinci: fix up dma_mapping_error() incorrect patch Date: Fri, 6 Apr 2018 15:24:23 +0200 Message-Id: <20180406084345.761541623@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180406084331.507038179@linuxfoundation.org> References: <20180406084331.507038179@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: Greg Kroah-Hartman commit aabb797b4c1204b2e8518538b2616e476f2bac92, which is commit c5a2a394835f473ae23931eda5066d3771d7b2f8 upstream had an error in it. Ben writes: The '!' needs to be deleted. This appears to have been fixed upstream by: commit 8aedbf580d21121d2a032e4c8ea12d8d2d85e275 Author: Fabien Parent Date: Thu Feb 23 19:01:56 2017 +0100 spi: davinci: Use SPI framework to handle DMA mapping which is not suitable for stable. So I'm just fixing this up directly. Reported-by: Ben Hutchings Cc: Kevin Hilman Cc: Mark Brown Cc: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/spi/spi-davinci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/spi/spi-davinci.c +++ b/drivers/spi/spi-davinci.c @@ -646,7 +646,7 @@ static int davinci_spi_bufs(struct spi_d buf = t->rx_buf; t->rx_dma = dma_map_single(&spi->dev, buf, t->len, DMA_FROM_DEVICE); - if (dma_mapping_error(&spi->dev, !t->rx_dma)) { + if (dma_mapping_error(&spi->dev, t->rx_dma)) { ret = -EFAULT; goto err_rx_map; }