aboutsummaryrefslogtreecommitdiff
path: root/hw/pci-bridge/dec.h
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2019-07-23 12:08:59 -0400
committerMichael S. Tsirkin <mst@redhat.com>2019-07-29 16:57:27 -0400
commit22235bb609c18547cf6b215bad1f9d2ec56ad371 (patch)
treec4cd927e67a4d2c3b93efbcc9dbc7c0822b9859c /hw/pci-bridge/dec.h
parentdd56040d297a0c530e204e9f459b256e3ddd7e8f (diff)
pc-dimm: fix crash when invalid slot number is used
QEMU will crash with: Segmentation fault (core dumped) when negative slot number is used, ex: qemu-system-x86_64 -m 1G,maxmem=20G,slots=256 \ -object memory-backend-ram,id=mem1,size=1G \ -device pc-dimm,id=dimm1,memdev=mem1,slot=-2 fix it by checking that slot number is within valid range. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Message-Id: <20190723160859.27250-1-imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Li Qiang <liq3ea@gmail.com> Signed-off-by: Igor Mammedov &lt;<a href="mailto:imammedo@redhat.com" target="_blank">imammedo@redhat.com</a>&gt;<br></blockquote><div><br></div><div>Reviewed-by: Li Qiang &lt;<a href="mailto:liq3ea@gmail.com">liq3ea@gmail.com</a>&gt;<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> Reviewed-by: Pankaj Gupta <pagupta@redhat.com>
Diffstat (limited to 'hw/pci-bridge/dec.h')
0 files changed, 0 insertions, 0 deletions