]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 13 Nov 2019 23:47:34 +0000 (18:47 -0500)
commitb985288c2ddadf3cef4c1721af878c7e28aaba4b
treeed24642e64e079b1a6ee051b1c1e9004a3145d45
parent6ae70d106dbae4597066f7fc8778f3fc7daef9d7
HID: hyperv: Use in-place iterator API in the channel callback

BugLink: https://bugs.launchpad.net/bugs/1852492
[ Upstream commit 6a297c90efa68b2864483193b8bfb0d19478600c ]

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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/hid/hid-hyperv.c