OSDN Git Service

Fix for not ending up in an eternal loop in DrmManager.
authorHenrik B Andersson <henrikb.andersson@sonymobile.com>
Fri, 26 Oct 2012 13:15:15 +0000 (15:15 +0200)
committerJames Dong <jdong@google.com>
Thu, 24 Jan 2013 20:49:26 +0000 (12:49 -0800)
commitb7a56193d5723cfb9984ae3a4feecb2212690a65
tree2f7b61d17c19f921a2e9d467fb1e46500d126fa5
parent7acd13defdb3f33b2e266f1ef8f3ac85285c5e27
Fix for not ending up in an eternal loop in DrmManager.

In the original code a random number is used to get try
to find an empty slot in the list of free DRM id's.
When you reached the limit of 0xfff id's you ended up
in an eternal loop causing ANRs.

Updated by James Dong <jdong@google.com>.

Change-Id: I70176cc3f770223c4a8060f9739fe2bc03a703d9
drm/drmserver/DrmManager.cpp
drm/libdrmframework/include/DrmManager.h