[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <157061614282.18808.3604540678077210321@skylake-alporthouse-com>
Date: Wed, 09 Oct 2019 11:15:42 +0100
From: Chris Wilson <chris@...is-wilson.co.uk>
To: Colin King <colin.king@...onical.com>,
Daniel Vetter <daniel@...ll.ch>,
David Airlie <airlied@...ux.ie>,
Jani Nikula <jani.nikula@...ux.intel.com>,
Joonas Lahtinen <joonas.lahtinen@...ux.intel.com>,
Rodrigo Vivi <rodrigo.vivi@...el.com>,
Tvrtko Ursulin <tvrtko.ursulin@...el.com>,
dri-devel@...ts.freedesktop.org, intel-gfx@...ts.freedesktop.org
Cc: kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH][next] drm/i915/selftests: fix null pointer dereference on
pointer data
Quoting Colin King (2019-10-09 11:00:24)
> From: Colin Ian King <colin.king@...onical.com>
>
> In the case where data fails to be allocated the error exit path is
> via label 'out' where data is dereferenced in a for-loop. Fix this
> by exiting via the label 'out_file' instead to avoid the null pointer
> dereference.
>
> Addresses-Coverity: ("Dereference after null check")
> Fixes: 50d16d44cce4 ("drm/i915/selftests: Exercise context switching in parallel")
> Signed-off-by: Colin Ian King <colin.king@...onical.com>
Reviewed-by: Chris Wilson <chris@...is-wilson.co.uk>
-Chris
Powered by blists - more mailing lists