From: Johanna Abrahamsson Date: Tue, 23 Aug 2016 22:02:27 +0000 (+0200) Subject: staging: android: ion: Do not BUG on handle client mismatch X-Git-Tag: v4.9-rc1~119^2~870 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0210737c85860756efa7d936156e8a94412f5d5c;p=platform%2Fkernel%2Flinux-exynos.git 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 Acked-by: Laura Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c index 88dd17e..bbf13be 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) {