Merge "msm: kgsl: Fix potential device NULL pointer dereferences"

This commit is contained in:
Linux Build Service Account 2016-11-05 07:35:32 -07:00 committed by Gerrit - the friendly Code Review server
commit 85d7e134cc

View file

@ -1067,6 +1067,9 @@ void kgsl_snapshot_save_frozen_objs(struct work_struct *work)
size_t size = 0; size_t size = 0;
void *ptr; void *ptr;
if (IS_ERR_OR_NULL(device))
return;
kgsl_snapshot_process_ib_obj_list(snapshot); kgsl_snapshot_process_ib_obj_list(snapshot);
list_for_each_entry(obj, &snapshot->obj_list, node) { list_for_each_entry(obj, &snapshot->obj_list, node) {