diff options
author | Peng Hao <flyingpenghao@gmail.com> | 2021-12-22 02:12:25 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2022-01-15 00:50:53 +0100 |
commit | cf4a4493ff70874f8af26d75d4346c591c298e89 (patch) | |
tree | 7e944aeaf81849d94d637ee6decba4b528b781ff /drivers/vdpa/mlx5 | |
parent | virtio: fix a typo in function "vp_modern_remove" comments. (diff) | |
download | linux-cf4a4493ff70874f8af26d75d4346c591c298e89.tar.xz linux-cf4a4493ff70874f8af26d75d4346c591c298e89.zip |
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 <flyingpeng@tencent.com>
Link: https://lore.kernel.org/r/20211222011225.40573-1-flyingpeng@tencent.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Fixes: 5f1f79bbc9e2 ("virtio-mem: Paravirtualized memory hotplug")
Cc: stable@vger.kernel.org # v5.8+
Diffstat (limited to 'drivers/vdpa/mlx5')
0 files changed, 0 insertions, 0 deletions