drm/sti: sti_vtg: Handle return NULL error from devm_ioremap_nocache
Here, If devm_ioremap_nocache will fail. It will return NULL. Kernel can run into a NULL-pointer dereference. This error check will avoid NULL pointer dereference. Signed-off-by:Arvind Yadav <arvind.yadav.cs@gmail.com> Acked-by:
Vincent Abriou <vincent.abriou@st.com>
Showing
Please register or sign in to comment