Message ID | 1421944729-28510-1-git-send-email-maxim.uvarov@linaro.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <patchwork-forward+bncBDX25FHYWQNBBNGPQSTAKGQEZ5WLNBY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f200.google.com (mail-we0-f200.google.com [74.125.82.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B19BF240DB for <linaro@patches.linaro.org>; Thu, 22 Jan 2015 16:39:17 +0000 (UTC) Received: by mail-we0-f200.google.com with SMTP id m14sf1648757wev.3 for <linaro@patches.linaro.org>; Thu, 22 Jan 2015 08:39:17 -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=M893F/gUNZ5u/gkI/e8MXiEZHsHh1V+tKZWSpQanHTtySqjeF4BXkSJx/wrpnRDq+Y Alq4NN4VNEUH08LybU6IUempnA9XJrUQ9T4rlXWjTsYDXdE6Fc6KAq2AfDivE98+8yHi yd/U+psor/1/feAUiVSuOp9gfmlt1mHeONe63yMrcLXb898LW4r/lTjvwaO1JHUYyP8L oqlFjNYDTzS5B4EF+IF6BiCitEQHFJxWtg8227sDWwHxlf5kBR+kW4JZ0goeMWOT/r9i 9yUWq7OFDEyRUk4+Z5+/ZwgD0DNBqDJuXzxKJ7Xhm6ikIwxcXjNtnCFC5+hxL0TiwOgG k0xg== X-Gm-Message-State: ALoCoQnsjkMToRTucPOJW5JfQYF8qQAEW6ri3Op+al9Hv/Gm++yiOzjS86UHGRyrmmwCLO8DLH9Z X-Received: by 10.152.37.130 with SMTP id y2mr65128laj.8.1421944756949; Thu, 22 Jan 2015 08:39:16 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.9 with SMTP id o9ls203457lao.83.gmail; Thu, 22 Jan 2015 08:39:16 -0800 (PST) X-Received: by 10.152.191.165 with SMTP id gz5mr2643292lac.37.1421944756475; Thu, 22 Jan 2015 08:39:16 -0800 (PST) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com. [209.85.215.41]) by mx.google.com with ESMTPS id bf5si4888824lab.128.2015.01.22.08.39.16 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Jan 2015 08:39:16 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by mail-la0-f41.google.com with SMTP id gm9so2687709lab.0 for <patchwork-forward@linaro.org>; Thu, 22 Jan 2015 08:39:16 -0800 (PST) X-Received: by 10.112.52.229 with SMTP id w5mr2784950lbo.52.1421944756388; Thu, 22 Jan 2015 08:39:16 -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 c8csp321433lbb; Thu, 22 Jan 2015 08:39:15 -0800 (PST) X-Received: by 10.229.212.67 with SMTP id gr3mr4326530qcb.6.1421944755056; Thu, 22 Jan 2015 08:39:15 -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 s96si5028155qge.116.2015.01.22.08.39.13 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 22 Jan 2015 08:39:15 -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 1YEKmm-0001eM-6g; Thu, 22 Jan 2015 16:39:12 +0000 Received: from mail-la0-f51.google.com ([209.85.215.51]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from <maxim.uvarov@linaro.org>) id 1YEKmg-0001c7-Rf for lng-odp@lists.linaro.org; Thu, 22 Jan 2015 16:39:06 +0000 Received: by mail-la0-f51.google.com with SMTP id ge10so2636149lab.10 for <lng-odp@lists.linaro.org>; Thu, 22 Jan 2015 08:39:01 -0800 (PST) X-Received: by 10.112.97.163 with SMTP id eb3mr2672178lbb.47.1421944741178; Thu, 22 Jan 2015 08:39:01 -0800 (PST) Received: from localhost.localdomain (broadband-46-188-125-104.2com.net. [46.188.125.104]) by mx.google.com with ESMTPSA id f4sm1136853lam.30.2015.01.22.08.38.54 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 22 Jan 2015 08:38:54 -0800 (PST) From: Maxim Uvarov <maxim.uvarov@linaro.org> To: lng-odp@lists.linaro.org Date: Thu, 22 Jan 2015 19:38:47 +0300 Message-Id: <1421944729-28510-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] [PATCHv3 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.215.41 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);