From: Linus Torvalds Date: Thu, 4 Oct 2012 16:19:02 +0000 (-0700) Subject: firmware: use 'kernel_read()' to read firmware into kernel buffer X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce57e981f2b996aaca2031003b3f866368307766;p=pandora-kernel.git 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 Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed