]> git.hungrycats.org Git - linux/commit
[PATCH] sparse: msnd sound fix
authorAlexander Viro <viro@parcelfarce.linux.theplanet.co.uk>
Thu, 3 Jun 2004 09:47:28 +0000 (02:47 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 3 Jun 2004 09:47:28 +0000 (02:47 -0700)
commite29b3d48f5cbaa4fa6255569e3204444fe205661
tree78f0de522c28fa07a7e0705339225eae55d63df1
parentac1aff9920bd6f8b12972fc376bc41b64fa2cf4e
[PATCH] sparse: msnd sound fix

msnd_pinnacle/msnd_classic do copy_{to,from}_user under a spinlock.

Taken out of spinlock (into a temp. buffer). Calls of msnd_fifo_{read,write}
always go from kernel buffer now, so we can drop the 'int user' argument in
them _and_ simplify error handling - all errors were from copy_..._user() and
now these are called directly by dsp_read()/dsp_write().
sound/oss/msnd.c
sound/oss/msnd.h
sound/oss/msnd_pinnacle.c