[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190312065927.fnroygpyso4rumob@sirius.home.kraxel.org>
Date: Tue, 12 Mar 2019 07:59:27 +0100
From: Gerd Hoffmann <kraxel@...hat.com>
To: Rodrigo Siqueira <rodrigosiqueiramelo@...il.com>
Cc: Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <maxime.ripard@...tlin.com>,
Sean Paul <sean@...rly.run>, David Airlie <airlied@...ux.ie>,
Daniel Vetter <daniel@...ll.ch>,
dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] drm/atomic-helper: Validate pointer before dereference
Hi,
> - if (funcs->atomic_enable)
> - funcs->atomic_enable(crtc, old_crtc_state);
> - else
> - funcs->commit(crtc);
> + if (funcs) {
> + if (funcs->atomic_enable)
> + funcs->atomic_enable(crtc,
> + old_crtc_state);
> + else if (funcs->atomic_enable)
"if (funcs->commit)" I guess?
> + funcs->commit(crtc);
> + }
cheers,
Gerd
Powered by blists - more mailing lists