Message ID | 1386973529-4884-63-git-send-email-john.stultz@linaro.org |
---|---|
State | Accepted |
Headers | show
Return-Path: <patchwork-forward+bncBCJ7RPMX4EMBBYMTV2KQKGQEPPWZU5Q@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f69.google.com (mail-vb0-f69.google.com [209.85.212.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id ECAAB23FBA for <linaro@patches.linaro.org>; Fri, 13 Dec 2013 22:27:45 +0000 (UTC) Received: by mail-vb0-f69.google.com with SMTP id f12sf302650vbg.8 for <linaro@patches.linaro.org>; Fri, 13 Dec 2013 14:27:45 -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=215vxP93jCbL9X2zPr5yG6c6SJCB59skr3LlWbGSJGU=; b=EjfFW6Jv+T9jZomhxEcD9yCkLN5D1td4Ea4fmwL2OOfZgCjTwKhjuN+jUIY3AFwzNG xXGe1v+uM7fVrm/d5QoeV2Js3fqLiA5c7UcL1958nDwnKmBIgG2FNWzDjOPGtv2D2RMw 4jlDnEn9+HiOqACJZ9STEImts5RYaxmEol6x3731X6eH0mZQLfGyCfXnxc50F38VvQnw 03cJOlBGwvKx1fjH7oOQCoVXTKJMFrJE2rxRhVinupHnphbTbWsCRZzuiOQOZQVkaGMk rQt5aKAj1ZwLE9yWvAJTofYYzY21ZGvTGhSl2mJwKDYCZx3cIxGo03CmONsQIv/ZMs+T F2Pg== X-Gm-Message-State: ALoCoQk1MXr9lPzM3bnnvne+fZhaMyBz5UwzWG++ztsvKxPDIy8ZQ8wSDHlqJOKokuUoj/Ilgf5l X-Received: by 10.58.76.129 with SMTP id k1mr1934971vew.19.1386973665819; Fri, 13 Dec 2013 14:27:45 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.121.98 with SMTP id lj2ls1196388qeb.45.gmail; Fri, 13 Dec 2013 14:27:45 -0800 (PST) X-Received: by 10.220.244.132 with SMTP id lq4mr2207314vcb.31.1386973665639; Fri, 13 Dec 2013 14:27:45 -0800 (PST) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id ti3si1197779vdc.41.2013.12.13.14.27.45 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Dec 2013 14:27:45 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.175; Received: by mail-vc0-f175.google.com with SMTP id ld13so1736534vcb.34 for <patchwork-forward@linaro.org>; Fri, 13 Dec 2013 14:27:45 -0800 (PST) X-Received: by 10.52.103.35 with SMTP id ft3mr1866680vdb.5.1386973665580; Fri, 13 Dec 2013 14:27:45 -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 u4csp73570vcz; Fri, 13 Dec 2013 14:27:45 -0800 (PST) X-Received: by 10.66.154.197 with SMTP id vq5mr5992756pab.155.1386973664813; Fri, 13 Dec 2013 14:27:44 -0800 (PST) Received: from mail-pa0-f45.google.com (mail-pa0-f45.google.com [209.85.220.45]) by mx.google.com with ESMTPS id zi8si2510965pac.98.2013.12.13.14.27.44 for <patches@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Dec 2013 14:27:44 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.45 is neither permitted nor denied by best guess record for domain of john.stultz@linaro.org) client-ip=209.85.220.45; Received: by mail-pa0-f45.google.com with SMTP id fb1so592698pad.18 for <patches@linaro.org>; Fri, 13 Dec 2013 14:27:44 -0800 (PST) X-Received: by 10.66.123.5 with SMTP id lw5mr5985982pab.83.1386973664441; Fri, 13 Dec 2013 14:27:44 -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.42 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Dec 2013 14:27:43 -0800 (PST) From: John Stultz <john.stultz@linaro.org> To: LKML <linux-kernel@vger.kernel.org> Cc: Greg KH <gregkh@linuxfoundation.org>, Android Kernel Team <kernel-team@android.com>, Sumit Semwal <sumit.semwal@linaro.org>, Jesse Barker <jesse.barker@arm.com>, Colin Cross <ccross@android.com>, JP Abgrall <jpa@google.com>, John Stultz <john.stultz@linaro.org> Subject: [PATCH 062/115] gpu: ion: fix kfree/list_del order Date: Fri, 13 Dec 2013 14:24:36 -0800 Message-Id: <1386973529-4884-63-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.220.175 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: <patchwork-forward.linaro.org> X-Google-Group-Id: 836684582541 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-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> |
diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c index b965f15..b2dcee5 100644 --- a/drivers/staging/android/ion/ion.c +++ b/drivers/staging/android/ion/ion.c @@ -1342,8 +1342,8 @@ static bool ion_heap_drain_freelist(struct ion_heap *heap) return false; rt_mutex_lock(&heap->lock); list_for_each_entry_safe(buffer, tmp, &heap->free_list, list) { - _ion_buffer_destroy(buffer); list_del(&buffer->list); + _ion_buffer_destroy(buffer); } BUG_ON(!list_empty(&heap->free_list)); rt_mutex_unlock(&heap->lock);