uid_cputime: Check for the range while removing range of UIDs.
authorRuchi Kandoi <kandoiruchi@google.com>
Sat, 24 Oct 2015 00:49:11 +0000 (17:49 -0700)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 27 Oct 2015 09:22:46 +0000 (17:22 +0800)
commitd7670225d3e1748ac506a4ca2864fd8503a9883a
tree51934c9435773865884610676990c874c3325b0e
parent35d9cc3d716849666b4dc12280272c517e5dd4b6
uid_cputime: Check for the range while removing range of UIDs.

Checking if the uid_entry->uid matches the uid intended to be removed will
prevent deleting unwanted uid_entry.
Type cast the key for the hashtable to the same size, as when they were
inserted. This will make sure that we can find the uid_entry we want.

Bug: 25195548
Change-Id: I567942123cfb20e4b61ad624da19ec4cc84642c1
Signed-off: Ruchi kandoi <kandoiruchi@google.com>
(cherry picked from commit 170458885df2e4e081d3f8489cfd4f66a9598995)
drivers/misc/uid_cputime.c