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

In some cases snd_sb_csp_load() did kmalloc() and copy_from_user()
under a spinlock.  Split into snd_sb_csp_load() and snd_sb_csp_load_user() -
ther former always from kernel pointer, the latter - from userland.
snd_sb_csp_load_user() doesn't take any locks itself, it just
does kmalloc, copy_from_user and calls snd_sb_csp_load() to do the rest.
sound/isa/sb/sb16_csp.c