提交 d109b7ce 编写于 作者: L Luyao Huang 提交者: Ján Tomko

conf: goto error when value of max_sectors is too large

Output error when we try to set a too large max_sectors.
Just like queues and cmd_per_lun here.
Signed-off-by: NLuyao Huang <lhuang@redhat.com>
(cherry picked from commit ce1d2f63)
Signed-off-by: NJán Tomko <jtomko@redhat.com>
上级 03f19178
......@@ -6435,6 +6435,7 @@ virDomainControllerDefParseXML(xmlNodePtr node,
if (max_sectors && virStrToLong_ui(max_sectors, NULL, 10, &def->max_sectors) < 0) {
virReportError(VIR_ERR_XML_ERROR,
_("Malformed 'max_sectors' value %s'"), max_sectors);
goto error;
}
if (virDomainDeviceInfoParseXML(node, NULL, &def->info, flags) < 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册