Support full 32 bits for socket tags.

Bug: 5321184
Change-Id: Iabd668674e60626caafc9b66b29fdbddc3724f58
This commit is contained in:
Jeff Sharkey 2012-05-02 16:01:31 -07:00
parent 575b23584d
commit e34b91719c
1 changed files with 1 additions and 3 deletions

View File

@ -99,9 +99,7 @@ static int write_param(const char *param_path, const char *value) {
int qtaguid_tagSocket(int sockfd, int tag, uid_t uid) {
char lineBuf[CTRL_MAX_INPUT_LEN];
int res;
/* Doing java-land a favor, enforcing "long" */
uint64_t kTag = ((uint64_t)tag << 32) & ~(1LLU<<63);
uint64_t kTag = ((uint64_t)tag << 32);
pthread_once(&resTrackInitDone, qtaguid_resTrack);