Message ID | alpine.LFD.2.20.1612131609260.4914@schleppi (mailing list archive) |
---|---|
State | Accepted |
Headers | show
Return-Path: <linux-rdma-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7624A6021C for <patchwork-linux-rdma@patchwork.kernel.org>; Tue, 13 Dec 2016 15:11:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6901C28554 for <patchwork-linux-rdma@patchwork.kernel.org>; Tue, 13 Dec 2016 15:11:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5DF0A285F4; Tue, 13 Dec 2016 15:11:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D9DD628554 for <patchwork-linux-rdma@patchwork.kernel.org>; Tue, 13 Dec 2016 15:11:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933775AbcLMPLF (ORCPT <rfc822;patchwork-linux-rdma@patchwork.kernel.org>); Tue, 13 Dec 2016 10:11:05 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:35131 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933658AbcLMPLC (ORCPT <rfc822;linux-rdma@vger.kernel.org>); Tue, 13 Dec 2016 10:11:02 -0500 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id uBDFA8Du119695 for <linux-rdma@vger.kernel.org>; Tue, 13 Dec 2016 10:11:02 -0500 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0a-001b2d01.pphosted.com with ESMTP id 27akch81fc-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for <linux-rdma@vger.kernel.org>; Tue, 13 Dec 2016 10:11:01 -0500 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for <linux-rdma@vger.kernel.org> from <sebott@linux.vnet.ibm.com>; Tue, 13 Dec 2016 15:10:59 -0000 Received: from d06dlp02.portsmouth.uk.ibm.com (9.149.20.14) by e06smtp05.uk.ibm.com (192.168.101.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 13 Dec 2016 15:10:56 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id 0B6912190061; Tue, 13 Dec 2016 15:10:06 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id uBDFAtCv13107702; Tue, 13 Dec 2016 15:10:56 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D67634C059; Tue, 13 Dec 2016 14:09:09 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B01954C05A; Tue, 13 Dec 2016 14:09:09 +0000 (GMT) Received: from dyn-9-152-212-47.boeblingen.de.ibm.com (unknown [9.152.212.47]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Tue, 13 Dec 2016 14:09:09 +0000 (GMT) Date: Tue, 13 Dec 2016 16:10:55 +0100 (CET) From: Sebastian Ott <sebott@linux.vnet.ibm.com> X-X-Sender: sebott@schleppi To: Doug Ledford <dledford@redhat.com>, Sean Hefty <sean.hefty@intel.com>, Hal Rosenstock <hal.rosenstock@gmail.com> cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH resend] IB/core: fix unmap_sg argument In-Reply-To: <alpine.LFD.2.20.1612021439450.3570@schleppi> References: <alpine.LFD.2.20.1612021439450.3570@schleppi> User-Agent: Alpine 2.20 (LFD 67 2015-01-07) Organization: =?ISO-8859-15?Q?=22IBM_Deutschland_Research_&_Development_GmbH_=2F_Vorsitzende_des_Aufsichtsrats=3A_Martina_Koederitz_Gesch=E4ftsf=FChrung=3A_Dirk_Wittkopp_Sitz_der_Gesellschaft=3A_B=F6blingen_=2F_Registergericht?= =?ISO-8859-15?Q?=3A_Amtsgericht_Stuttgart=2C_HRB_243294=22?= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16121315-0020-0000-0000-000002472A4F X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16121315-0021-0000-0000-00001EA9F45D Message-Id: <alpine.LFD.2.20.1612131609260.4914@schleppi> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2016-12-13_11:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=3 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1612130245 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: <linux-rdma.vger.kernel.org> X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/infiniband/core/umem.c b/drivers/infiniband/core/umem.c index 84b4eff..1e62a5f 100644 --- a/drivers/infiniband/core/umem.c +++ b/drivers/infiniband/core/umem.c @@ -51,7 +51,7 @@ static void __ib_umem_release(struct ib_device *dev, struct ib_umem *umem, int d if (umem->nmap > 0) ib_dma_unmap_sg(dev, umem->sg_head.sgl, - umem->nmap, + umem->npages, DMA_BIDIRECTIONAL); for_each_sg(umem->sg_head.sgl, sg, umem->npages, i) {