[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20170519193754.GA15989@nuc-i3427.alporthouse.com>
Date: Fri, 19 May 2017 20:37:54 +0100
From: Chris Wilson <chris@...is-wilson.co.uk>
To: Colin King <colin.king@...onical.com>
Cc: Daniel Vetter <daniel.vetter@...el.com>,
Jani Nikula <jani.nikula@...ux.intel.com>,
David Airlie <airlied@...ux.ie>,
Mika Kuoppala <mika.kuoppala@...el.com>,
intel-gfx@...ts.freedesktop.org, dri-devel@...ts.freedesktop.org,
kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH][drm-next] drm/i915: Check for allocation failure
On Fri, May 19, 2017 at 06:56:17PM +0100, Colin King wrote:
> From: Colin Ian King <colin.king@...onical.com>
>
> The memory allocation for C is not being null checked and hence we
> could end up with a null pointer dereference. Fix this with a null
> pointer check. (I really should have noticed this when I was fixing an
> earlier issue.)
>
> Detected by CoverityScan, CID#1436406 ("Dereference null return")
>
> Fixes: 47624cc3301b60 ("drm/i915: Import the kfence selftests for i915_sw_fence")
> Signed-off-by: Colin Ian King <colin.king@...onical.com>
Pushed, thanks very much for the patch.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
Powered by blists - more mailing lists