staging: android: ion: Do not BUG on handle client mismatch
authorJohanna Abrahamsson <johanna@mjao.org>
Tue, 23 Aug 2016 22:02:27 +0000 (00:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Sep 2016 15:36:33 +0000 (17:36 +0200)
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>
drivers/staging/android/ion/ion.c

index 88dd17e..bbf13be 100644 (file)
@@ -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) {