diff options
| author | Umang Jain <umang.jain@ideasonboard.com> | 2023-11-29 01:48:45 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-12-04 08:06:59 +0100 |
| commit | f9c42898830383aff4fdc723828fa93a6abec02d (patch) | |
| tree | 78154f0f7c5b870f253e193c1b5ad5672f177f10 /tools/perf/scripts/python/stackcollapse.py | |
| parent | ad96610acc0eb81f0342fa688e6d42fd530c328b (diff) | |
staging: vc04_services: vchiq_core: Log through struct vchiq_instance
The handle_to_service() helper can return NULL, so `service` pointer
can indeed be set to NULL. So, do not log through service pointer
(which can cause NULL-deference), instead, use the vchiq_instance
function argument to get access to the struct device.
Fixes: f67af5940d6d ("staging: vc04: Convert(and rename) vchiq_log_info() to use dynamic debug")
Reviewed-by: Ricardo B. Marliere <ricardo@marliere.net>
Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Link: https://lore.kernel.org/r/20231128201845.489237-1-umang.jain@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
