Skip to content
Commit cf4a4493 authored by Peng Hao's avatar Peng Hao Committed by Michael S. Tsirkin
Browse files

virtio/virtio_mem: handle a possible NULL as a memcpy parameter



There is a check for vm->sbm.sb_states before, and it should check
it here as well.

Signed-off-by: default avatarPeng Hao <flyingpeng@tencent.com>
Link: https://lore.kernel.org/r/20211222011225.40573-1-flyingpeng@tencent.com
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Fixes: 5f1f79bb ("virtio-mem: Paravirtualized memory hotplug")
Cc: stable@vger.kernel.org # v5.8+
parent 2b68224e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment