Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b985c434 authored by Jeyaprakash Soundrapandian's avatar Jeyaprakash Soundrapandian Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: sync: Change the sync state first" into dev/msm-4.9-camx

parents 9d1406e9 b3c4ee24
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -215,6 +215,7 @@ int cam_sync_deinit_object(struct sync_table_row *table, uint32_t idx)
		spin_unlock_bh(&sync_dev->row_spinlocks[idx]);
		return -EINVAL;
	}
	row->state = CAM_SYNC_STATE_INVALID;

	/* Object's child and parent objects will be added into this list */
	INIT_LIST_HEAD(&temp_child_list);
@@ -303,7 +304,6 @@ int cam_sync_deinit_object(struct sync_table_row *table, uint32_t idx)
		kfree(sync_cb);
	}

	row->state = CAM_SYNC_STATE_INVALID;
	memset(row, 0, sizeof(*row));
	clear_bit(idx, sync_dev->bitmap);
	INIT_LIST_HEAD(&row->callback_list);