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)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:53:54 +0000 (13:53 -0800)
commitd19dc26df67f361331680c54f35e9e6169e0a774
tree174bfaccf4eeb262af4c59eea78bbd7cf1b07a49
parent75d2d020f770f5f0d3ab9610eee1b2f1c3e2d35d
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