From patchwork Fri Dec 13 22:24:02 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 22393 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f197.google.com (mail-pd0-f197.google.com [209.85.192.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B856923FBA for ; Fri, 13 Dec 2013 22:26:52 +0000 (UTC) Received: by mail-pd0-f197.google.com with SMTP id v10sf7020655pde.8 for ; Fri, 13 Dec 2013 14:26:52 -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=TE9YqwQ0FmvESedpC9JomJHDGsWQWkms9LnnY6+BorA=; b=JJrgsE0ikNkVWOMOKwNtkrFHk0fc8eJxdOjQWPWtJZlyjZ1kPTpCObVCOfUImzzl4Y U0Si87Iipwb8yIY/KwO+bYZQ8yLUo1eO7CvKbeS482x/KLmK6MUBZ2Y8nCEdn0cTMQ0g pW0/uOBvKTdpnyQwitFjC3Je6pKu6FijqPz7N+pbYunDuROkopROOjas5WLplx/i/tvx LawDuseRoxBASipwZgZ3QksDT/9KZHiksbcrcKzEWJpG+5fUlmAl/PszowSsZh+rE8UU 2tyoas9L42m7wTRKqOw/n0CqT+9QTKvnJkNZw7R+eVtItOpxf8wbBRt9QuINbt/HlxPY tu1w== X-Gm-Message-State: ALoCoQnJX0UIycYl1VJpW4YTquW03ZB+1i0bxEasrvU4fRyRSVb3F9eEkRttkVrh+0LiKXBZzEoq X-Received: by 10.66.187.129 with SMTP id fs1mr2634814pac.45.1386973612018; Fri, 13 Dec 2013 14:26:52 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.17.65 with SMTP id m1ls1185655qed.91.gmail; Fri, 13 Dec 2013 14:26:51 -0800 (PST) X-Received: by 10.58.46.171 with SMTP id w11mr2239863vem.5.1386973611879; Fri, 13 Dec 2013 14:26:51 -0800 (PST) Received: from mail-vb0-f48.google.com (mail-vb0-f48.google.com [209.85.212.48]) by mx.google.com with ESMTPS id uw4si1195615vec.77.2013.12.13.14.26.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Dec 2013 14:26:51 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.48 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.48; Received: by mail-vb0-f48.google.com with SMTP id f13so1722753vbg.35 for ; Fri, 13 Dec 2013 14:26:51 -0800 (PST) X-Received: by 10.52.165.210 with SMTP id za18mr1911998vdb.20.1386973611672; Fri, 13 Dec 2013 14:26:51 -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 u4csp73496vcz; Fri, 13 Dec 2013 14:26:51 -0800 (PST) X-Received: by 10.66.146.199 with SMTP id te7mr6061301pab.106.1386973610945; Fri, 13 Dec 2013 14:26:50 -0800 (PST) Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) by mx.google.com with ESMTPS id sw1si2520486pab.25.2013.12.13.14.26.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Dec 2013 14:26:50 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.47 is neither permitted nor denied by best guess record for domain of john.stultz@linaro.org) client-ip=209.85.220.47; Received: by mail-pa0-f47.google.com with SMTP id kq14so595273pab.20 for ; Fri, 13 Dec 2013 14:26:50 -0800 (PST) X-Received: by 10.68.12.138 with SMTP id y10mr5962693pbb.101.1386973610458; Fri, 13 Dec 2013 14:26:50 -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.26.48 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Dec 2013 14:26:49 -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 028/115] gpu: ion: Fix bug in ion_free Date: Fri, 13 Dec 2013 14:24:02 -0800 Message-Id: <1386973529-4884-29-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.48 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 Signed-off-by: Rebecca Schultz Zavin [jstultz: modified patch to apply to staging directory] Signed-off-by: John Stultz --- drivers/staging/android/ion/ion.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c index f7dc821..e52522c 100644 --- a/drivers/staging/android/ion/ion.c +++ b/drivers/staging/android/ion/ion.c @@ -406,6 +406,7 @@ void ion_free(struct ion_client *client, struct ion_handle *handle) if (!valid_handle) { WARN(1, "%s: invalid handle passed to free.\n", __func__); + mutex_unlock(&client->lock); return; } ion_handle_put(handle);