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)
committerSasha Levin <sashal@kernel.org>
Tue, 20 Aug 2019 15:28:04 +0000 (11:28 -0400)
commitd09bc83640d524b8467a660db7b1d15e6562a1de
treeccefd39bd08c33771b5a0dfac1d2beb8b7466dd0
parent16c75963723dfd8d7ca719527052f16be7258a23
Input: hyperv-keyboard: 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: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/input/serio/hyperv-keyboard.c