diff options
author | Lee Jones <lee.jones@linaro.org> | 2019-10-21 12:16:34 +0300 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2019-11-11 11:45:03 +0300 |
commit | b195e101580db390f50b0d587b7f66f241d2bc88 (patch) | |
tree | 35f5a044a7379036a0bd9dce890bad2125176620 /LICENSES/deprecated/ISC | |
parent | 99cd1059759833f83cc7e442fe2c3b0bd4dff399 (diff) | |
download | linux-b195e101580db390f50b0d587b7f66f241d2bc88.tar.xz |
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>
Diffstat (limited to 'LICENSES/deprecated/ISC')
0 files changed, 0 insertions, 0 deletions