summaryrefslogtreecommitdiffstats
path: root/drivers/staging/android
diff options
context:
space:
mode:
authorJohanna Abrahamsson <johanna@mjao.org>2016-08-24 00:02:27 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-01 17:36:33 +0200
commit0210737c85860756efa7d936156e8a94412f5d5c (patch)
treeb3772c26c5c574cbe7c288e4ce8aac769c154a1e /drivers/staging/android
parent2218b8fc90a9f6c57de3b1bde6c6c6c30eee07c6 (diff)
downloadlinux-0210737c85860756efa7d936156e8a94412f5d5c.tar.bz2
staging: android: ion: Do not BUG on handle client mismatch
The ion_free_nolock() function should not BUG on a handle client mismatch. Signed-off-by: Johanna Abrahamsson <johanna@mjao.org> Acked-by: Laura Abbott <labbott@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/android')
-rw-r--r--drivers/staging/android/ion/ion.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c
index 88dd17e8b19a..bbf13beddb7b 100644
--- a/drivers/staging/android/ion/ion.c
+++ b/drivers/staging/android/ion/ion.c
@@ -550,8 +550,6 @@ static void ion_free_nolock(struct ion_client *client,
{
bool valid_handle;
- BUG_ON(client != handle->client);
-
valid_handle = ion_handle_validate(client, handle);
if (!valid_handle) {