]> git.baikalelectronics.ru Git - kernel.git/commit
virtio-console: remove unnecessary kmemdup()
authorXianting Tian <xianting.tian@linux.alibaba.com>
Fri, 15 Oct 2021 02:46:58 +0000 (10:46 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Oct 2021 08:35:04 +0000 (10:35 +0200)
commit517aafd6533f009f9f62428624d69d63afa338aa
tree92e4d16e58c47d4ee2c02b3ecd96df93bae367d3
parent310d0da92b3d86807d22d1d2f74d7ad91d0cd0a6
virtio-console: remove unnecessary kmemdup()

This revert commit e9e71a1f00 ("virtio-console: avoid DMA from stack")

hvc framework will never pass stack memory to the put_chars() function,
So the calling of kmemdup() is unnecessary, we can remove it.

Signed-off-by: Xianting Tian <xianting.tian@linux.alibaba.com>
Reviewed-by: Shile Zhang <shile.zhang@linux.alibaba.com>
Link: https://lore.kernel.org/r/20211015024658.1353987-4-xianting.tian@linux.alibaba.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/virtio_console.c