summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-input.c
diff options
context:
space:
mode:
authorFengguang Wu <wfg@mail.ustc.edu.cn>2007-12-07 11:35:14 +0300
committerJiri Kosina <jkosina@suse.cz>2008-01-28 16:51:22 +0300
commit70d215c4a7dfbddc138a2dd726d8f80f3e6d2622 (patch)
tree68e38ea2f3f0df7a51b73e6d150b74a780c67a6e /drivers/hid/hid-input.c
parentc4124c9b68bf8ecf1e8afedad3a22e18666cb6f3 (diff)
downloadlinux-70d215c4a7dfbddc138a2dd726d8f80f3e6d2622.tar.xz
HID: the `bit' in hidinput_mapping_quirks() is an out parameter
Fix a panic, by changing hidinput_mapping_quirks(,, unsigned long *bit,) to hidinput_mapping_quirks(,, unsigned long **bit,) The `bit' in this function is an out parameter. Signed-off-by: Fengguang Wu <wfg@mail.ustc.edu.cn> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-input.c')
-rw-r--r--drivers/hid/hid-input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c
index aeb018e31bfc..5325d98b4328 100644
--- a/drivers/hid/hid-input.c
+++ b/drivers/hid/hid-input.c
@@ -382,7 +382,7 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
}
/* handle input mappings for quirky devices */
- ret = hidinput_mapping_quirks(usage, input, bit, &max);
+ ret = hidinput_mapping_quirks(usage, input, &bit, &max);
if (ret)
goto mapped;