Skip to content
Commit d4f0e4da authored by Havard Skinnemoen's avatar Havard Skinnemoen Committed by Jiri Kosina
Browse files

HID: hiddev: Use vzalloc to allocate hiddev_list



Everytime a HID device is opened, a new hiddev_list is allocated with
kzalloc. This requires 64KB of physically contiguous memory, which could
easily push a heavily loaded system over the edge.

Allocating the same amount of memory with vmalloc shouldn't be nearly as
demanding, so let's do that instead. The memory isn't used for DMA and
doesn't look particularly performance sensitive, so this should be safe.

Signed-off-by: default avatarHavard Skinnemoen <hskinnemoen@google.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 9f1f463a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment