[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <152149190651.3594.5036347331521892974@mail.alporthouse.com>
Date: Mon, 19 Mar 2018 20:38:26 +0000
From: Chris Wilson <chris@...is-wilson.co.uk>
To: "Gustavo A. R. Silva" <gustavo@...eddedor.com>,
"Zhenyu Wang" <zhenyuw@...ux.intel.com>,
"Zhi Wang" <zhi.a.wang@...el.com>,
"Jani Nikula" <jani.nikula@...ux.intel.com>,
"Joonas Lahtinen" <joonas.lahtinen@...ux.intel.com>,
"Rodrigo Vivi" <rodrigo.vivi@...el.com>,
"David Airlie" <airlied@...ux.ie>
Cc: intel-gvt-dev@...ts.freedesktop.org,
intel-gfx@...ts.freedesktop.org, dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org,
"Gustavo A. R. Silva" <gustavo@...eddedor.com>
Subject: Re: [PATCH] drm/i915/gvt/scheduler: fix potential NULL pointer dereference
Quoting Gustavo A. R. Silva (2018-03-19 19:30:53)
> _workload_ is being dereferenced before it is null checked, hence
> there is a potential null pointer dereference.
>
> Fix this by moving the pointer dereference after _workload_ has
> been null checked.
The checks are misleading and not required.
-Chris
Powered by blists - more mailing lists