diff options
author | Fengguang Wu <wfg@mail.ustc.edu.cn> | 2007-12-07 16:35:14 +0800 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2008-01-28 14:51:22 +0100 |
commit | 70d215c4a7dfbddc138a2dd726d8f80f3e6d2622 (patch) | |
tree | 68e38ea2f3f0df7a51b73e6d150b74a780c67a6e /drivers/hid/hid-input.c | |
parent | c4124c9b68bf8ecf1e8afedad3a22e18666cb6f3 (diff) | |
download | kernel_samsung_smdk4412-70d215c4a7dfbddc138a2dd726d8f80f3e6d2622.zip kernel_samsung_smdk4412-70d215c4a7dfbddc138a2dd726d8f80f3e6d2622.tar.gz kernel_samsung_smdk4412-70d215c4a7dfbddc138a2dd726d8f80f3e6d2622.tar.bz2 |
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 aeb018e..5325d98 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; |