diff options
author | Fengguang Wu <wfg@mail.ustc.edu.cn> | 2007-12-07 03:35:14 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2008-01-28 08:51:22 -0500 |
commit | 70d215c4a7dfbddc138a2dd726d8f80f3e6d2622 (patch) | |
tree | 68e38ea2f3f0df7a51b73e6d150b74a780c67a6e /drivers/hid/hid-input.c | |
parent | c4124c9b68bf8ecf1e8afedad3a22e18666cb6f3 (diff) |
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.c | 2 |
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 | |||
382 | } | 382 | } |
383 | 383 | ||
384 | /* handle input mappings for quirky devices */ | 384 | /* handle input mappings for quirky devices */ |
385 | ret = hidinput_mapping_quirks(usage, input, bit, &max); | 385 | ret = hidinput_mapping_quirks(usage, input, &bit, &max); |
386 | if (ret) | 386 | if (ret) |
387 | goto mapped; | 387 | goto mapped; |
388 | 388 | ||