]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: sst: user pointers in intel_sst_mmap_play_capture()
authorDan Carpenter <error27@gmail.com>
Wed, 20 Oct 2010 06:57:34 +0000 (08:57 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 9 Nov 2010 21:31:48 +0000 (13:31 -0800)
commit4e887d463e36058ae1b9d135b9c0dc4be47f6e38
treee427553b3bf83fbf9a462cb79ff9933f5b3a369a
parent267dc2720c026870d6ea0f73366ccd77c795f628
Staging: sst: user pointers in intel_sst_mmap_play_capture()

There were some places in intel_sst_mmap_play_capture() that
dereferenced user pointers instead of copying the data to the kernel.

I removed the BUG_ON(!mmap_buf) and BUG_ON(!buf_entry) since those are
never possible in the current code.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Cc: Vinod Koul <vinod.koul@intel.com>
Cc: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/intel_sst/intel_sst_app_interface.c