]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
Input: hyperv-keyboard: Use in-place iterator API in the channel callback
authorDexuan Cui <decui@microsoft.com>
Tue, 20 Aug 2019 03:01:23 +0000 (03:01 +0000)
committerKhalid Elmously <khalid.elmously@canonical.com>
Thu, 26 Sep 2019 04:34:52 +0000 (00:34 -0400)
commit386cb3c34b898cbd40d4fb09d70bab967d5c674a
treefb3c23b969d3642fc0d18815df62c93e7d29e988
parent1ac0415c15bbdd34f475e7a540ade755e9ccd426
Input: hyperv-keyboard: Use in-place iterator API in the channel callback

BugLink: https://bugs.launchpad.net/bugs/1843463
[ Upstream commit d09bc83640d524b8467a660db7b1d15e6562a1de ]

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: Dmitry Torokhov <dmitry.torokhov@gmail.com>
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/input/serio/hyperv-keyboard.c