From 999b874f4aa39b7abf45662ff0900f943ddb2d02 Mon Sep 17 00:00:00 2001 From: Stephen Kitt Date: Tue, 25 Aug 2009 19:24:22 -0700 Subject: [PATCH] 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-format-patch failed