Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1645867
| From | Chris Wilson <chris@chris-wilson.co.uk> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH][drm-next] drm/i915: Check for allocation failure |
| Date | 2017-05-19 21:40 +0200 |
| Message-ID | <tIVUJ-6R6-9@gated-at.bofh.it> (permalink) |
| References | <tIUlX-5uX-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri, May 19, 2017 at 06:56:17PM +0100, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.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@canonical.com>
Pushed, thanks very much for the patch.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH][drm-next] drm/i915: Check for allocation failure Colin King <colin.king@canonical.com> - 2017-05-19 20:00 +0200 Re: [PATCH][drm-next] drm/i915: Check for allocation failure Chris Wilson <chris@chris-wilson.co.uk> - 2017-05-19 21:40 +0200
csiph-web