From: Stephen Kitt Date: Wed, 26 Aug 2009 02:24:22 +0000 (-0700) Subject: Input: joydev - validate axis/button maps before clobbering current ones X-Git-Tag: v2.6.32-rc1~686^2^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=999b874f4aa39b7abf45662ff0900f943ddb2d02;p=pandora-kernel.git Input: joydev - validate axis/button maps before clobbering current ones Up to now axis and button map validation was done after the user-supplied values were copied over the driver's map. This patch copies the user-supplied values into temporary buffers and validated them before overwriting the driver's permanent maps. Also change JSIOCGBTNMAP and JSIOCGAXMAP to return number of bytes returned to userspace instead of 0. Signed-off-by: Stephen Kitt Signed-off-by: Dmitry Torokhov --- Reading git-diff-tree failed