Skip to content
Commit d1ff6522 authored by Jiri Kosina's avatar Jiri Kosina
Browse files

HID: fix non-atomic allocation in hid_input_report



'interrupt' variable can't be used to safely determine whether
we are running in atomic context or not, as we might be called from
during control transfer completion through hid_ctrl() in atomic
context with interrupt == 0.

Reported-by: default avatarJens Axboe <jens.axboe@oracle.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 18240904
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment