Tag: 14f63eeecfa3ca092f1c83755303161e53a9c641

Staging: media: Replace dev_err with pr_err to avoid null pointer derefrence

Author: Haneen Mohammed <hamohammed.sa@gmail.com> This patch replace dev_err with pr_err, for pointer is derefrenced after comparing it to NULL. This was found using the following coccinelle script: @disable is_null@ identifier f; expression E; identifier fld; statement S; @@ + if(E == NULL) S f(…,E->fld,…); -if(E == NULL) S; @@ identifier f; expression E; identifier fld; …

Continue reading

BtrLinux
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.