diff options
| author | Gopi Krishna Menon <krishnagopi487@gmail.com> | 2025-10-04 16:30:04 +0530 |
|---|---|---|
| committer | Rob Clark <robin.clark@oss.qualcomm.com> | 2025-11-15 09:10:44 -0800 |
| commit | 89194773f5738a0617240ac92b190fbd553e58bc (patch) | |
| tree | 5eea655ccc3ad6662456f3fd214f51566768e2f0 /tools/docs/parse-headers.py | |
| parent | e2f085ab8636fae2ebe0adf42071e7558234cd7b (diff) | |
drm/msm: Add NULL check in vm_op_enqueue()
vm_op_enqueue() allocates an msm_vm_op struct with kmalloc,
but the return value is not checked for NULL value which
can be returned by kmalloc under low-memory conditions.
This can result in NULL pointer dereference when the pointer
is dereferenced.
Add NULL check after the allocation and propagate -ENOMEM back
to the caller in case of a failure.
Signed-off-by: Gopi Krishna Menon <krishnagopi487@gmail.com>
Patchwork: https://patchwork.freedesktop.org/patch/678416/
Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
Diffstat (limited to 'tools/docs/parse-headers.py')
0 files changed, 0 insertions, 0 deletions
