]> git.baikalelectronics.ru Git - kernel.git/commit
tile: enable sparse checks for get/put_user
authorChris Metcalf <cmetcalf@ezchip.com>
Tue, 13 Jan 2015 19:41:20 +0000 (14:41 -0500)
committerChris Metcalf <cmetcalf@ezchip.com>
Tue, 13 Jan 2015 23:44:34 +0000 (18:44 -0500)
commit8fc757b3b0e0f9a2ce661a0dfd711f78fc4577de
tree83933b15cb7715a61cfd6635a1b5221ebdf818bf
parente3b1bbc8feba3a59963d84bd175cd05a3ee60772
tile: enable sparse checks for get/put_user

Add an extra intermediate variable to __get_user and __put_user
to give sparse an opportunity to detect mismatches.

Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Chris Metcalf <cmetcalf@ezchip.com>
arch/tile/include/asm/uaccess.h