diff for duplicates of <87k2yepuqq.fsf@intel.com> diff --git a/a/1.txt b/N1/1.txt index c27848f..ed4d3d3 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -18,14 +18,14 @@ Reviewed-by: Jani Nikula <jani.nikula@intel.com> > const struct i915_ggtt_view *ggtt_view) > { > - struct i915_vma *vma = kzalloc(sizeof(*vma), GFP_KERNEL); -> - if (vma = NULL) +> - if (vma == NULL) > - return ERR_PTR(-ENOMEM); > + struct i915_vma *vma; > > if (WARN_ON(i915_is_ggtt(vm) != !!ggtt_view)) > return ERR_PTR(-EINVAL); > + vma = kzalloc(sizeof(*vma), GFP_KERNEL); -> + if (vma = NULL) +> + if (vma == NULL) > + return ERR_PTR(-ENOMEM); > > INIT_LIST_HEAD(&vma->vma_link); @@ -33,3 +33,7 @@ Reviewed-by: Jani Nikula <jani.nikula@intel.com> -- Jani Nikula, Intel Open Source Technology Center +_______________________________________________ +Intel-gfx mailing list +Intel-gfx@lists.freedesktop.org +http://lists.freedesktop.org/mailman/listinfo/intel-gfx diff --git a/a/content_digest b/N1/content_digest index 3130277..227ee9c 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\020150318082158.GB10434@mwanda\0" "From\0Jani Nikula <jani.nikula@linux.intel.com>\0" "Subject\0Re: [patch] drm/i915: memory leak in __i915_gem_vma_create()\0" - "Date\0Wed, 18 Mar 2015 08:36:45 +0000\0" + "Date\0Wed, 18 Mar 2015 10:36:45 +0200\0" "To\0Dan Carpenter <dan.carpenter@oracle.com>" Daniel Vetter <daniel.vetter@intel.com> " Joonas Lahtinen <joonas.lahtinen@linux.intel.com>\0" @@ -31,20 +31,24 @@ "> \t\t const struct i915_ggtt_view *ggtt_view)\n" "> {\n" "> -\tstruct i915_vma *vma = kzalloc(sizeof(*vma), GFP_KERNEL);\n" - "> -\tif (vma = NULL)\n" + "> -\tif (vma == NULL)\n" "> -\t\treturn ERR_PTR(-ENOMEM);\n" "> +\tstruct i915_vma *vma;\n" "> \n" "> \tif (WARN_ON(i915_is_ggtt(vm) != !!ggtt_view))\n" "> \t\treturn ERR_PTR(-EINVAL);\n" "> +\tvma = kzalloc(sizeof(*vma), GFP_KERNEL);\n" - "> +\tif (vma = NULL)\n" + "> +\tif (vma == NULL)\n" "> +\t\treturn ERR_PTR(-ENOMEM);\n" "> \n" "> \tINIT_LIST_HEAD(&vma->vma_link);\n" "> \tINIT_LIST_HEAD(&vma->mm_list);\n" "\n" "-- \n" - Jani Nikula, Intel Open Source Technology Center + "Jani Nikula, Intel Open Source Technology Center\n" + "_______________________________________________\n" + "Intel-gfx mailing list\n" + "Intel-gfx@lists.freedesktop.org\n" + http://lists.freedesktop.org/mailman/listinfo/intel-gfx -425013ed9f4230ca51d389512d79dfedf980ed35c70b473a090c0cfab36e3eda +8f9567ea40214ee382e4c1c83c8069116465f8ab7cec223abbe2da29670b1da1
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.