]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
uas: replace WARN_ON_ONCE() with lockdep_assert_held()
authorSanjeev Sharma <sanjeev_sharma@mentor.com>
Tue, 12 Aug 2014 06:40:21 +0000 (12:10 +0530)
committerJiri Slaby <jslaby@suse.cz>
Thu, 30 Oct 2014 20:44:33 +0000 (21:44 +0100)
commitc3b8cdf7030f3f59fb36b15a8ee6f2d7e1df8c70
tree411df8390153efce863758dd0c3a8acde1a9d033
parent941cc4ffa7252e3f99396b1e2743a1f83aef053c
uas: replace WARN_ON_ONCE() with lockdep_assert_held()

commit ab945eff8396bc3329cc97274320e8d2c6585077 upstream.

on some architecture spin_is_locked() always return false in
uniprocessor configuration and therefore it would be advise
to replace with lockdep_assert_held().

Signed-off-by: Sanjeev Sharma <Sanjeev_Sharma@mentor.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/usb/storage/uas.c