Merge "msm: kgsl: Fix potential device NULL pointer dereferences"
This commit is contained in:
commit
85d7e134cc
1 changed files with 3 additions and 0 deletions
|
@ -1067,6 +1067,9 @@ void kgsl_snapshot_save_frozen_objs(struct work_struct *work)
|
|||
size_t size = 0;
|
||||
void *ptr;
|
||||
|
||||
if (IS_ERR_OR_NULL(device))
|
||||
return;
|
||||
|
||||
kgsl_snapshot_process_ib_obj_list(snapshot);
|
||||
|
||||
list_for_each_entry(obj, &snapshot->obj_list, node) {
|
||||
|
|
Loading…
Add table
Reference in a new issue