diff for duplicates of <20161020114400.GA15071@elgon.mountain> diff --git a/a/1.txt b/N1/1.txt index 8b698fb..8119752 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -14,7 +14,7 @@ index 5808ee7c1935..6abb2a679a3f 100644 entry_obj->obj = i915_gem_object_create(&(s->vgpu->gvt->dev_priv->drm), round_up(bb_size, PAGE_SIZE)); -- if (entry_obj->obj = NULL) +- if (entry_obj->obj == NULL) - return -ENOMEM; + if (IS_ERR(entry_obj->obj)) + return PTR_ERR(entry_obj->obj); @@ -25,7 +25,7 @@ index 5808ee7c1935..6abb2a679a3f 100644 wa_ctx->indirect_ctx.obj = i915_gem_object_create(dev, round_up(ctx_size + CACHELINE_BYTES, PAGE_SIZE)); -- if (wa_ctx->indirect_ctx.obj = NULL) +- if (wa_ctx->indirect_ctx.obj == NULL) - return -ENOMEM; + if (IS_ERR(wa_ctx->indirect_ctx.obj)) + return PTR_ERR(wa_ctx->indirect_ctx.obj); diff --git a/a/content_digest b/N1/content_digest index 19f3171..a774307 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,6 +1,6 @@ "From\0Dan Carpenter <dan.carpsnter@oracle.com>\0" "Subject\0[patch] drm/i915/gvt: i915_gem_object_create() returns error pointers\0" - "Date\0Thu, 20 Oct 2016 11:44:00 +0000\0" + "Date\0Thu, 20 Oct 2016 14:44:00 +0300\0" "To\0Daniel Vetter <daniel.vetter@intel.com>" " Zhi Wang <zhi.a.wang@intel.com>\0" "Cc\0Jani Nikula <jani.nikula@linux.intel.com>" @@ -28,7 +28,7 @@ " \n" " \tentry_obj->obj = i915_gem_object_create(&(s->vgpu->gvt->dev_priv->drm),\n" " \t\tround_up(bb_size, PAGE_SIZE));\n" - "-\tif (entry_obj->obj = NULL)\n" + "-\tif (entry_obj->obj == NULL)\n" "-\t\treturn -ENOMEM;\n" "+\tif (IS_ERR(entry_obj->obj))\n" "+\t\treturn PTR_ERR(entry_obj->obj);\n" @@ -39,7 +39,7 @@ " \n" " \twa_ctx->indirect_ctx.obj = i915_gem_object_create(dev,\n" " \t\t\tround_up(ctx_size + CACHELINE_BYTES, PAGE_SIZE));\n" - "-\tif (wa_ctx->indirect_ctx.obj = NULL)\n" + "-\tif (wa_ctx->indirect_ctx.obj == NULL)\n" "-\t\treturn -ENOMEM;\n" "+\tif (IS_ERR(wa_ctx->indirect_ctx.obj))\n" "+\t\treturn PTR_ERR(wa_ctx->indirect_ctx.obj);\n" @@ -47,4 +47,4 @@ " \tret = i915_gem_object_get_pages(wa_ctx->indirect_ctx.obj);\n" " \tif (ret)" -dab3b8988c9c17dbd61d5f21607f366ab126410339740ce71838a4d215d568d7 +7044c9055c74ae086ba7d94fd0b97847b98b1c9a47f8f2711538b98b577ff445
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.