commit | b195e101580db390f50b0d587b7f66f241d2bc88 | [log] [tgz] |
---|---|---|
author | Lee Jones <lee.jones@linaro.org> | Mon Oct 21 10:16:34 2019 +0100 |
committer | Lee Jones <lee.jones@linaro.org> | Mon Nov 11 08:45:03 2019 +0000 |
tree | 35f5a044a7379036a0bd9dce890bad2125176620 | |
parent | 99cd1059759833f83cc7e442fe2c3b0bd4dff399 [diff] |
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: Lee Jones <lee.jones@linaro.org> Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org> Reviewed-by: Mark Brown <broonie@kernel.org>