From: H Hartley Sweeten Date: Wed, 19 Sep 2012 22:08:35 +0000 (-0700) Subject: staging: comedi: s526: don't dereference insn->data pointer X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~75^2~81 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2abd982c484ba0e46ea681b0bc6d7baf7c47730;p=pandora-kernel.git staging: comedi: s526: don't dereference insn->data pointer The comedi_insn 'data' pointer is a __user pointer that is passed into the kernel using an ioctl. The comedi core copies this data to kernel space in do_insnlist_ioctl() and then passes that kernel data to the drivers as a separate parameter. The drivers never need to access the data through the insn->data pointer. This fixes a number of sparse warnings about: warning: dereference of noderef expression Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed