From patchwork Wed Sep 2 02:50:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 52949 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by patches.linaro.org (Postfix) with ESMTPS id 188F82157D for ; Wed, 2 Sep 2015 02:50:37 +0000 (UTC) Received: by wicmn1 with SMTP id mn1sf1424178wic.1 for ; Tue, 01 Sep 2015 19:50:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to: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=HLuDHF821DNZfH5lSONDXCkQ9aZMHFZOZWDatGylYx8=; b=GznrSi1yvsFWXtmJQAhJUh4pPsRlk5BnSkScvmvbSBwqoK4d/aETbOFGqBaXseMMMa J9o9gq7Km8CZhqfVB7YAUA6S6dYOtLM0ZQZIa2GTOYwG8fzQEOO6QSuBm68mPhs6Xk5v S1WwFmdrU8Wpy905/xNjiyx/oPyTuXsFX0Lc/ryphRI9ZTtXD0U8O8Mg0ZCVBH6/cBe8 cvMbIo4tA2RPSEmIk3lozS6Q94OwKkZOsZsnFdql+oyJFAc1Ika0dkHWirVk/HN+p5iJ SNYI1iG7Jd4EPV0NYJheT+KY9WJPuYdWn6w6iJK0YhMF8AqAZdvnihZntWaYDYBzSkwt jptw== X-Gm-Message-State: ALoCoQlj32DtXUneUXv8ybdeAc21J8ln56yEnTTv6BzrebyWEuyd1VpCocUXJ3u4I2lyP8mCzgS6 X-Received: by 10.152.6.103 with SMTP id z7mr8530128laz.8.1441162236327; Tue, 01 Sep 2015 19:50:36 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.225 with SMTP id v1ls19450lav.73.gmail; Tue, 01 Sep 2015 19:50:36 -0700 (PDT) X-Received: by 10.152.23.4 with SMTP id i4mr3722356laf.51.1441162236193; Tue, 01 Sep 2015 19:50:36 -0700 (PDT) Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com. [209.85.217.179]) by mx.google.com with ESMTPS id z10si18341841lae.0.2015.09.01.19.50.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Sep 2015 19:50:36 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.179 as permitted sender) client-ip=209.85.217.179; Received: by lbbmp1 with SMTP id mp1so10260757lbb.1 for ; Tue, 01 Sep 2015 19:50:36 -0700 (PDT) X-Received: by 10.112.198.202 with SMTP id je10mr2619337lbc.86.1441162236075; Tue, 01 Sep 2015 19:50:36 -0700 (PDT) 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.164.42 with SMTP id yn10csp246413lbb; Tue, 1 Sep 2015 19:50:33 -0700 (PDT) X-Received: by 10.107.8.20 with SMTP id 20mr17740035ioi.94.1441162232668; Tue, 01 Sep 2015 19:50:32 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id j195si5933505ioe.208.2015.09.01.19.50.31; Tue, 01 Sep 2015 19:50:32 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id 62C1E6183A; Wed, 2 Sep 2015 02:50:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id A2CE8611FB; Wed, 2 Sep 2015 02:50:27 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 0EC326156D; Wed, 2 Sep 2015 02:50:26 +0000 (UTC) Received: from mail-oi0-f41.google.com (mail-oi0-f41.google.com [209.85.218.41]) by lists.linaro.org (Postfix) with ESMTPS id B27D8611F4 for ; Wed, 2 Sep 2015 02:50:24 +0000 (UTC) Received: by oiww128 with SMTP id w128so11345259oiw.2 for ; Tue, 01 Sep 2015 19:50:24 -0700 (PDT) X-Received: by 10.202.81.150 with SMTP id f144mr13488031oib.13.1441162224114; Tue, 01 Sep 2015 19:50:24 -0700 (PDT) Received: from Ubuntu15.localdomain (cpe-24-28-70-239.austin.res.rr.com. [24.28.70.239]) by smtp.gmail.com with ESMTPSA id wa2sm13688141oeb.2.2015.09.01.19.50.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 01 Sep 2015 19:50:23 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Tue, 1 Sep 2015 21:50:15 -0500 Message-Id: <1441162216-15540-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.4 X-Topics: patch Subject: [lng-odp] [PATCH 1/2] linux-generic: schedule: fix range check on odp_schedule_group_destroy() X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: bill.fischofer@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.179 as permitted sender) smtp.mailfrom=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 Signed-off-by: Bill Fischofer --- platform/linux-generic/odp_schedule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linux-generic/odp_schedule.c b/platform/linux-generic/odp_schedule.c index dc2d75f..b9b47a8 100644 --- a/platform/linux-generic/odp_schedule.c +++ b/platform/linux-generic/odp_schedule.c @@ -685,7 +685,7 @@ int odp_schedule_group_destroy(odp_schedule_group_t group) odp_spinlock_lock(&sched->grp_lock); if (group < ODP_CONFIG_SCHED_GRPS && - group > _ODP_SCHED_GROUP_NAMED && + group >= _ODP_SCHED_GROUP_NAMED && sched->sched_grp[group].name[0] != 0) { odp_thrmask_zero(sched->sched_grp[group].mask); memset(&sched->sched_grp[group].name, 0,