Revert "virtio-console: remove unnecessary kmemdup()"
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Oct 2021 06:45:53 +0000 (08:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Oct 2021 06:45:53 +0000 (08:45 +0200)
commit45965252a29afc8ef6f58938077fe30f86081bf0
tree25b61fd860652fd875aedbda93be2e05262f7ed3
parent1177384179416c7136e1348f07609e0da1ae6b91
Revert "virtio-console: remove unnecessary kmemdup()"

This reverts commit 9db81eca10ba2d84177fa076704db3a5d76863c3.

A dependant patch on this one needs to be reverted, so this one also
needs to be reverted at this point in time.

Link: https://lore.kernel.org/r/208f7a41-a9fa-630c-cb44-c37c503f3a72@kernel.org
Reported-by: Jiri Slaby <jirislaby@kernel.org>
Cc: Xianting Tian <xianting.tian@linux.alibaba.com>
Cc: Shile Zhang <shile.zhang@linux.alibaba.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/virtio_console.c