From: Dan Carpenter Date: Tue, 19 Oct 2010 05:57:04 +0000 (+0200) Subject: Staging: sst: more dereferencing user pointers X-Git-Tag: v2.6.37-rc2~22^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc704e31edc723a84c2469f26aa0279e1ddb948e;p=pandora-kernel.git Staging: sst: more dereferencing user pointers This is another patch about making a copy of the data into kernel space before using it. It is easy to trigger a kernel oops in the original code. If you passed a NULL to SNDRV_SST_SET_TARGET_DEVICE then it called BUG_ON(). And SNDRV_SST_DRIVER_INFO would let you write the information to arbitrary memory locations which is a security violation. Signed-off-by: Dan Carpenter Acked-by: Vinod Koul Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed