]> code.ossystems Code Review - openembedded-core.git/commitdiff
qemu: Fix "backport patches to fix cves" patch issue
authorKai Kang <kai.kang@windriver.com>
Wed, 20 Mar 2019 13:16:19 +0000 (09:16 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 20 Mar 2019 15:25:55 +0000 (15:25 +0000)
This change fixes a build problem introduced in the recent CVE patches.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/qemu/qemu/0015-fix-CVE-2018-20124.patch

index ad846958a78f46cf2f4d5595b82df8439dd95d56..985b819409167be8f89adc7f47ecec32956637d7 100644 (file)
@@ -38,7 +38,7 @@ index d7a4bbd9..7f8028f8 100644
 -        comp_handler(IBV_WC_GENERAL_ERR, VENDOR_ERR_NO_SGE, ctx);
 +    if (!num_sge || num_sge > MAX_SGE) {
 +        pr_dbg("invalid num_sge=%d\n", num_sge);
-+        comp_handler(IBV_WC_GENERAL_ERR, VENDOR_ERR_INV_NUM_SGE, ctx);
++        comp_handler(IBV_WC_GENERAL_ERR, VENDOR_ERR_NO_SGE, ctx);
          return;
      }
  
@@ -51,7 +51,7 @@ index d7a4bbd9..7f8028f8 100644
 -        comp_handler(IBV_WC_GENERAL_ERR, VENDOR_ERR_NO_SGE, ctx);
 +    if (!num_sge || num_sge > MAX_SGE) {
 +        pr_dbg("invalid num_sge=%d\n", num_sge);
-+        comp_handler(IBV_WC_GENERAL_ERR, VENDOR_ERR_INV_NUM_SGE, ctx);
++        comp_handler(IBV_WC_GENERAL_ERR, VENDOR_ERR_NO_SGE, ctx);
          return;
      }