Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit b195e101 authored by Lee Jones's avatar Lee Jones
Browse files

mfd: mfd-core: Protect against NULL call-back function pointer


If a child device calls mfd_cell_{en,dis}able() without an appropriate
call-back being set, we are likely to encounter a panic.  Avoid this
by adding suitable checking.

Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Reviewed-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
Reviewed-by: default avatarMark Brown <broonie@kernel.org>
parent 99cd1059
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment