diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-08-12 07:14:22 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-11-30 12:30:58 +0100 |
commit | e4debea9be7d5db52bc6a565a4c02c3c6560d093 (patch) | |
tree | 5f2ef61e325b7e74426bf06c876d2edad1291acd /include/net/sock.h | |
parent | 91f2b7d269e5c885c38c7ffa261f5276bd42f907 (diff) | |
download | linux-e4debea9be7d5db52bc6a565a4c02c3c6560d093.tar.bz2 |
media: venus: core: Fix a potential NULL pointer dereference in an error handling path
The normal path of the function makes the assumption that
'pm_ops->core_power' may be NULL.
We should make the same assumption in the error handling path or a NULL
pointer dereference may occur.
Add the missing test before calling 'pm_ops->core_power'
Fixes: 9e8efdb57879 ("media: venus: core: vote for video-mem path")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'include/net/sock.h')
0 files changed, 0 insertions, 0 deletions