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>
This commit is contained in:
committed by
Jiri Kosina
parent
c4124c9b68
commit
70d215c4a7
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user