Messages in this thread | | | Date | Tue, 12 Mar 2019 07:59:27 +0100 | From | Gerd Hoffmann <> | 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
| |