summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/kdoc_files.py
diff options
context:
space:
mode:
authorHuiwen He <hehuiwen@kylinos.cn>2025-11-13 01:04:11 +0800
committerRob Clark <rob.clark@oss.qualcomm.com>2025-11-17 09:43:58 -0800
commit3099e0247e3217e1b39c1c61766e06ec3d13835f (patch)
treefef2a02d3b9b1278b33c4d3f0120222c922493cf /tools/lib/python/kdoc/kdoc_files.py
parent15cc59ac954eb953252d5e98852569bf22ad5d8b (diff)
drm/msm: Fix NULL pointer dereference in crashstate_get_vm_logs()
crashstate_get_vm_logs() did not check the return value of kmalloc_array(). In low-memory situations, kmalloc_array() may return NULL, leading to a NULL pointer dereference when the function later accesses state->vm_logs. Fix this by checking the return value of kmalloc_array() and setting state->nr_vm_logs to 0 if allocation fails. Fixes: 9edc52967cc7 ("drm/msm: Add VM logging for VM_BIND updates") Signed-off-by: Huiwen He <hehuiwen@kylinos.cn> Patchwork: https://patchwork.freedesktop.org/patch/687555/ Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
Diffstat (limited to 'tools/lib/python/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions