ANDROID: binder: Don't BUG_ON(!spin_is_locked()).
authorMartijn Coenen <maco@android.com>
Thu, 31 Aug 2017 08:04:26 +0000 (10:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Sep 2017 07:21:57 +0000 (09:21 +0200)
commit858b2719686ddd0ab5fc77479a46d16f90e6b7da
tree31ce51f18aab399e037ae86e88ccb4b4bdbc0459
parentabcc61537e3566cae7f1fd225f2dcb82b3595fe3
ANDROID: binder: Don't BUG_ON(!spin_is_locked()).

Because is_spin_locked() always returns false on UP
systems.

Use assert_spin_locked() instead, and remove the
WARN_ON() instances, since those were easy to verify.

Signed-off-by: Martijn Coenen <maco@android.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder.c