summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/db8500-prcmu.c
diff options
context:
space:
mode:
authorLinus Torvalds2012-10-04 18:19:02 +0200
committerLinus Torvalds2012-10-04 18:19:02 +0200
commitce57e981f2b996aaca2031003b3f866368307766 (patch)
tree7ab6b29e6b0013519f3418bbaf8f661e064861ba /drivers/mfd/db8500-prcmu.c
parentMerge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jac... (diff)
downloadkernel-qcow2-linux-ce57e981f2b996aaca2031003b3f866368307766.tar.gz
kernel-qcow2-linux-ce57e981f2b996aaca2031003b3f866368307766.tar.xz
kernel-qcow2-linux-ce57e981f2b996aaca2031003b3f866368307766.zip
firmware: use 'kernel_read()' to read firmware into kernel buffer
Fengguang correctly points out that the firmware reading should not use vfs_read(), since the buffer is in kernel space. The vfs_read() just happened to work for kernel threads, but sparse warns about the incorrect address spaces, and it's definitely incorrect and could fail for other users of the firmware loading. Reported-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/mfd/db8500-prcmu.c')
0 files changed, 0 insertions, 0 deletions