[PATCH] proper lseek locking in ALSA, take 3
authorRobert Love <rml@tech9.net>
Thu, 21 Feb 2002 04:23:34 +0000 (20:23 -0800)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Thu, 21 Feb 2002 04:23:34 +0000 (20:23 -0800)
commit59b52d25c371e80c671d96f1698383075ac4ebd9
tree4c8a766a36c6b8e9adca0208a4c120f58c1038ba
parent41ae709dd601ac80847dc26d779d2403f3a56ed5
[PATCH] proper lseek locking in ALSA, take 3

The attached patch implements proper locking in ALSA lseek methods.
Note ALSA has 3 lseek implementations, but only:

sound/core/info.c :: snd_info_entry_llseek()

requires locking.  I wrapped the function in the BKL.  According to
Jaroslav Kysela the gus_mem_proc method is only called from above.  The
third lseek, in hwdep.c, clearly doesn't need locking.  Without this
patch, the above lseek is not safe.

Robert Love
sound/core/info.c