Message ID | 1422016474-8676-1-git-send-email-maxim.uvarov@linaro.org |
---|---|
State | Accepted |
Commit | c0ec4546cb4eb143d07a330ffee688b39a13e1e7 |
Headers | show
Return-Path: <patchwork-forward+bncBDX25FHYWQNBBDMARGTAKGQEEDORGTY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f69.google.com (mail-ee0-f69.google.com [74.125.83.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7DC58240D9 for <linaro@patches.linaro.org>; Fri, 23 Jan 2015 12:35:26 +0000 (UTC) Received: by mail-ee0-f69.google.com with SMTP id b57sf4697893eek.0 for <linaro@patches.linaro.org>; Fri, 23 Jan 2015 04:35:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=ieMHk0zA76it33GYr0Gkic7SBh/LTRH2H0rBRrW2R0A=; b=iE8Pttstu6yjlNg53n6F/HwxK2Rg1gXaL8VBfertJodKs1x2ORo4PhrsmQucnV0Lpd objGNduST6qD295i7f1xWhsm3rXRh7m+TJD3+aoREr8HDtJoVgBFhzo0pHPgX+wXqdFJ mYs4RNbUTqMU/3TqEzrk9zkBjlm5le5Easvw+lNGCRfOMhwTqmf7+0HaanXslyz1b9jl 7xFjn8uG/e/9UHyOGXWYspzsWa6l0q9ClOMm62uU10R+4eQDvmGymk3ThP4bTME9MXzZ fIjaOHpM8PRRXqAKLsfvuSf/7fkTVxx42rjpad8b66Ou2XAlhklzDBdszM+smqP4DIUg 6ynA== X-Gm-Message-State: ALoCoQk0OX0jtYU+h2htpzykw/kVlUDiCoSZ//ZeIfqWlu0eMclv7GdBALEOBdprmX9AHMjLaOu7 X-Received: by 10.112.99.37 with SMTP id en5mr44232lbb.17.1422016525764; Fri, 23 Jan 2015 04:35:25 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.191.140 with SMTP id gy12ls275320lac.93.gmail; Fri, 23 Jan 2015 04:35:25 -0800 (PST) X-Received: by 10.152.3.195 with SMTP id e3mr7172849lae.8.1422016525559; Fri, 23 Jan 2015 04:35:25 -0800 (PST) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com. [209.85.217.182]) by mx.google.com with ESMTPS id bn7si1204349lbc.124.2015.01.23.04.35.25 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Jan 2015 04:35:25 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) client-ip=209.85.217.182; Received: by mail-lb0-f182.google.com with SMTP id l4so6743315lbv.13 for <patchwork-forward@linaro.org>; Fri, 23 Jan 2015 04:35:25 -0800 (PST) X-Received: by 10.112.98.99 with SMTP id eh3mr6751236lbb.32.1422016525428; Fri, 23 Jan 2015 04:35:25 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.9.200 with SMTP id c8csp236667lbb; Fri, 23 Jan 2015 04:35:24 -0800 (PST) X-Received: by 10.224.165.77 with SMTP id h13mr7481178qay.14.1422016523903; Fri, 23 Jan 2015 04:35:23 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id d7si1780909qcq.47.2015.01.23.04.35.22 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 23 Jan 2015 04:35:23 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from <lng-odp-bounces@lists.linaro.org>) id 1YEdSK-0006C0-Bj; Fri, 23 Jan 2015 12:35:20 +0000 Received: from mail-la0-f45.google.com ([209.85.215.45]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from <maxim.uvarov@linaro.org>) id 1YEdSD-00068R-F3 for lng-odp@lists.linaro.org; Fri, 23 Jan 2015 12:35:13 +0000 Received: by mail-la0-f45.google.com with SMTP id gd6so7015232lab.4 for <lng-odp@lists.linaro.org>; Fri, 23 Jan 2015 04:35:07 -0800 (PST) X-Received: by 10.152.115.230 with SMTP id jr6mr7198789lab.2.1422016507863; Fri, 23 Jan 2015 04:35:07 -0800 (PST) Received: from localhost.localdomain ([188.92.105.210]) by mx.google.com with ESMTPSA id qg5sm410897lbb.42.2015.01.23.04.35.06 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 23 Jan 2015 04:35:06 -0800 (PST) From: Maxim Uvarov <maxim.uvarov@linaro.org> To: lng-odp@lists.linaro.org Date: Fri, 23 Jan 2015 15:34:32 +0300 Message-Id: <1422016474-8676-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.8.5.1.163.gd7aced9 X-Topics: patch Subject: [lng-odp] [PATCHv4 1/3] linux-generic: shm: odp_shm_free bug fix X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: <patchwork-forward.linaro.org> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Subscribe: <http://lists.linaro.org/mailman/listinfo/lng-odp>, <mailto:lng-odp-request@lists.linaro.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: maxim.uvarov@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 |
diff --git a/platform/linux-generic/odp_shared_memory.c b/platform/linux-generic/odp_shared_memory.c index 99c5b40..7d54f09 100644 --- a/platform/linux-generic/odp_shared_memory.c +++ b/platform/linux-generic/odp_shared_memory.c @@ -135,7 +135,7 @@ int odp_shm_free(odp_shm_t shm) shm_block = &odp_shm_tbl->block[i]; alloc_size = shm_block->size + shm_block->align; - ret = munmap(shm_block->addr, alloc_size); + ret = munmap(shm_block->addr_orig, alloc_size); if (0 != ret) { ODP_DBG("odp_shm_free: munmap failed\n"); odp_spinlock_unlock(&odp_shm_tbl->lock);