From: Jarkko Sakkinen Date: Fri, 3 Jul 2015 11:17:29 +0000 (+0300) Subject: drm: remove redundant code form drm_ioc32.c X-Git-Tag: omap-for-v4.3/fixes-rc1~89^2~37^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f96beec7a44f46bf277e2050a7a5a0308831d61;p=pandora-kernel.git drm: remove redundant code form drm_ioc32.c The compat ioctl handler ends up calling access_ok() twice: first indirectly inside compat_alloc_user_space() and then after returning from that function. This patch fixes issue. v2: there were three invalid removals of access_ok() that I've fixed. Also went through all the changes couple of times and verified that access_ok() is only removed when the buffer is allocated with compat_alloc_user_space(). My deepest apologies for this kind of sloppiness! Signed-off-by: Jarkko Sakkinen Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed