From: Andy Walls Date: Sat, 18 Dec 2010 13:48:17 +0000 (-0300) Subject: [media] ivtv: ivtv_write_vbi() should use copy_from_user() for user data buffers X-Git-Tag: v2.6.38-rc1~470^2~81 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0c45686c8e8aecc7b0cd04d9b6af48d74418d53;p=pandora-kernel.git [media] ivtv: ivtv_write_vbi() should use copy_from_user() for user data buffers ivtv_write_vbi() is used for both VBI data that came from the driver internally and VBI data that came from the user. However, it did not use copy_from_user() for reading the VBI data from the user buffers. This change adds a new version of the function, ivtv_write_vbi_from_user(), that uses copy_from_user() to read the VBI data provided via user buffers. This should resolve a sparse build warning reported by Dave Gilbert. Reported-by: Dr. David Alan Gilbert Signed-off-by: Andy Walls Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed