From patchwork Fri Dec 13 22:24:38 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 22429 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f69.google.com (mail-pa0-f69.google.com [209.85.220.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 208A023FBA for ; Fri, 13 Dec 2013 22:27:51 +0000 (UTC) Received: by mail-pa0-f69.google.com with SMTP id hz1sf1988171pad.0 for ; Fri, 13 Dec 2013 14:27:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=EMhKNq/NNomQYi+yKiVu24AMX+a4ObMhbXFXiRxIpq4=; b=WUh5gzekB1vXhH2KuIGAwKicoQ54HJ8uMDGhoryQWelzgagWc9Nwe4nMybqurua9Lt g51MyK1ucZlVrdBCoQlOzQR29AyWX4U1IXu33amlULQDEGA+aGlaAReDw7Rk2QfzFsUa VuB37fjbZ2sfSSyLp1CCk5BwYGL0Tu+KQZsg8IQYUig28BvBs0mqQ2gI1wUFBGP9hl1M aDh9RYGRuD7mOazaiisqw63u1LSVz11in0OOn9R+4Gpxs8oZACb5Z/wKhVv3LqdGlJN1 8cyIN1mg+SQFTRVHJTa32WeAbB9r3ylAbeoLQvLCgko52YhnMeI5/H6YWsPIJpMRwlP6 4CSg== X-Gm-Message-State: ALoCoQlmbp9wEpmjJVBvrkIUdW0f6gAFhuL+jZErtVsXnP5GJV2DfR29XrUhvpIK0CL4kimGIa1q X-Received: by 10.66.189.163 with SMTP id gj3mr2838382pac.32.1386973670424; Fri, 13 Dec 2013 14:27:50 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.39.102 with SMTP id o6ls1235819qek.28.gmail; Fri, 13 Dec 2013 14:27:50 -0800 (PST) X-Received: by 10.52.249.105 with SMTP id yt9mr1851868vdc.67.1386973670106; Fri, 13 Dec 2013 14:27:50 -0800 (PST) Received: from mail-vb0-f52.google.com (mail-vb0-f52.google.com [209.85.212.52]) by mx.google.com with ESMTPS id eu2si706454vcb.92.2013.12.13.14.27.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Dec 2013 14:27:50 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.52 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.52; Received: by mail-vb0-f52.google.com with SMTP id p5so1705700vbn.39 for ; Fri, 13 Dec 2013 14:27:50 -0800 (PST) X-Received: by 10.52.75.99 with SMTP id b3mr929564vdw.80.1386973670042; Fri, 13 Dec 2013 14:27:50 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp73573vcz; Fri, 13 Dec 2013 14:27:49 -0800 (PST) X-Received: by 10.68.217.226 with SMTP id pb2mr5927822pbc.165.1386973669378; Fri, 13 Dec 2013 14:27:49 -0800 (PST) Received: from mail-pa0-f49.google.com (mail-pa0-f49.google.com [209.85.220.49]) by mx.google.com with ESMTPS id gn4si2518176pbc.46.2013.12.13.14.27.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Dec 2013 14:27:49 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.49 is neither permitted nor denied by best guess record for domain of john.stultz@linaro.org) client-ip=209.85.220.49; Received: by mail-pa0-f49.google.com with SMTP id kx10so594465pab.36 for ; Fri, 13 Dec 2013 14:27:47 -0800 (PST) X-Received: by 10.66.190.198 with SMTP id gs6mr6064659pac.49.1386973667846; Fri, 13 Dec 2013 14:27:47 -0800 (PST) Received: from localhost.localdomain (c-67-170-153-23.hsd1.or.comcast.net. [67.170.153.23]) by mx.google.com with ESMTPSA id qz9sm7457908pbc.3.2013.12.13.14.27.46 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Dec 2013 14:27:47 -0800 (PST) From: John Stultz To: LKML Cc: Greg KH , Android Kernel Team , Sumit Semwal , Jesse Barker , Colin Cross , Rebecca Schultz Zavin , John Stultz Subject: [PATCH 064/115] gpu: ion: Fix bug in ion shrinker Date: Fri, 13 Dec 2013 14:24:38 -0800 Message-Id: <1386973529-4884-65-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1386973529-4884-1-git-send-email-john.stultz@linaro.org> References: <1386973529-4884-1-git-send-email-john.stultz@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: john.stultz@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.52 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Rebecca Schultz Zavin The high variable was sometimes used uninitialized Signed-off-by: Rebecca Schultz Zavin [jstultz: modified patch to apply to staging directory] Signed-off-by: John Stultz --- drivers/staging/android/ion/ion_page_pool.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/android/ion/ion_page_pool.c b/drivers/staging/android/ion/ion_page_pool.c index e59da3a..df6e29c 100644 --- a/drivers/staging/android/ion/ion_page_pool.c +++ b/drivers/staging/android/ion/ion_page_pool.c @@ -203,8 +203,7 @@ static int ion_page_pool_shrink(struct shrinker *shrinker, bool high; int nr_to_scan = sc->nr_to_scan; - if (sc->gfp_mask & __GFP_HIGHMEM) - high = true; + high = sc->gfp_mask & __GFP_HIGHMEM; if (nr_to_scan == 0) return ion_page_pool_total(high);