Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: Peng Hao <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Michael S. Tsirkin <[email protected]> Fixes: 5f1f79b ("virtio-mem: Paravirtualized memory hotplug") Cc: [email protected] # v5.8+
- Loading branch information