]> asedeno.scripts.mit.edu Git - linux.git/commit
HID: hyperv: Use in-place iterator API in the channel callback
authorDexuan Cui <decui@microsoft.com>
Tue, 20 Aug 2019 02:56:34 +0000 (02:56 +0000)
committerSasha Levin <sashal@kernel.org>
Tue, 1 Oct 2019 18:49:41 +0000 (14:49 -0400)
commit6a297c90efa68b2864483193b8bfb0d19478600c
tree3e5b95a1476883ea3d4f2b650aed84e3ee41680d
parent54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c
HID: hyperv: Use in-place iterator API in the channel callback

Simplify the ring buffer handling with the in-place API.

Also avoid the dynamic allocation and the memory leak in the channel
callback function.

Signed-off-by: Dexuan Cui <decui@microsoft.com>
Acked-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/hid-hyperv.c