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)
committerDanny Wood <danwood76@gmail.com>
Sun, 31 Mar 2019 08:48:09 +0000 (09:48 +0100)
commitfc20e7a1c7266258b1c5fd5d66a4a2156f099fb0
tree304d8241f772aadaac5861d14ead2b6f8bf0d707
parent7b524067af37faf5b9ba5e6ace0a5c83d3b10e3d
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>
drivers/misc/uid_cputime.c