aboutsummaryrefslogtreecommitdiff
path: root/sound/usb/line6/driver.h
diff options
context:
space:
mode:
authorGravatar Takashi Iwai <tiwai@suse.de> 2017-11-06 20:16:50 +0100
committerGravatar Takashi Iwai <tiwai@suse.de> 2017-11-06 20:25:31 +0100
commit3510c7aa069aa83a2de6dab2b41401a198317bdc (patch)
tree8af28de7f1a3247856d683267685ab96d5290983 /sound/usb/line6/driver.h
parentALSA: timer: Limit max instances per timer (diff)
downloadlinux-3510c7aa069aa83a2de6dab2b41401a198317bdc.tar.gz
linux-3510c7aa069aa83a2de6dab2b41401a198317bdc.tar.bz2
linux-3510c7aa069aa83a2de6dab2b41401a198317bdc.zip
ALSA: seq: Avoid invalid lockdep class warning
The recent fix for adding rwsem nesting annotation was using the given "hop" argument as the lock subclass key. Although the idea itself works, it may trigger a kernel warning like: BUG: looking up invalid subclass: 8 .... since the lockdep has a smaller number of subclasses (8) than we currently allow for the hops there (10). The current definition is merely a sanity check for avoiding the too deep delivery paths, and the 8 hops are already enough. So, as a quick fix, just follow the max hops as same as the max lockdep subclasses. Fixes: 1f20f9ff57ca ("ALSA: seq: Fix nested rwsem annotation for lockdep splat") Reported-by: syzbot <syzkaller@googlegroups.com> Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/line6/driver.h')
0 files changed, 0 insertions, 0 deletions