mbox series

[0/2] ALSA: pcm: stream linking locking fixes

Message ID cover.1591610329.git.mirq-linux@rere.qmqm.pl (mailing list archive)
Headers show
Series ALSA: pcm: stream linking locking fixes | expand

Message

Michał Mirosław June 8, 2020, 10:06 a.m. UTC
Two patches fixing locking issues for SNDRV_PCM_IOCTL_LINK handling:
first adds a check preventing linking a stream to itself, second quiets
lockdep warning about nested locks.

Michał Mirosław (2):
  ALSA: pcm: disallow linking stream to itself
  ALSA: pcm: fix snd_pcm_link() lockdep splat

 sound/core/pcm_native.c | 20 ++++++++++++++++++--
 1 file changed, 18 insertions(+), 2 deletions(-)