diff options
| author | Lee Jones <lee.jones@linaro.org> | 2019-10-21 10:16:34 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-10-01 11:11:50 +0200 |
| commit | b176b20c30b309339bbce423bb3ab81bd5ae2e78 (patch) | |
| tree | 769760126581f6d0df2abbeb334ba00461fdf513 /kernel/sys.c | |
| parent | 4ee4cd0be975e5e9d7e8112df34f72ed8ef06402 (diff) | |
mfd: mfd-core: Protect against NULL call-back function pointer
[ Upstream commit b195e101580db390f50b0d587b7f66f241d2bc88 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'kernel/sys.c')
0 files changed, 0 insertions, 0 deletions
