aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorSudeep Holla <[email protected]>2015-03-17 17:28:46 +0000
committerGreg Kroah-Hartman <[email protected]>2015-03-25 14:38:41 +0100
commit8a7d95f95c95f396decbd4cda6d4903fc4664946 (patch)
tree91c6199e18c369b5cd55ffa5b1659fcc707d5115 /lib/mpi/mpiutil.c
parent2071b9502dadffd22ac1bc31c68728e2783ec3ac (diff)
drivers/base: cacheinfo: validate device node for all the caches
On architectures that depend on DT for obtaining cache hierarcy, we need to validate the device node for all the cache indices, failing to do so might result in wrong information being exposed to the userspace. This is quite possible on initial/incomplete versions of the device trees. In such cases, it's better to bail out if all the required device nodes are not present. This patch adds checks for the validation of device node for all the caches and doesn't initialise the cacheinfo if there's any error. Reported-by: Mark Rutland <[email protected]> Acked-by: Mark Rutland <[email protected]> Signed-off-by: Sudeep Holla <[email protected]> Cc: stable <[email protected]> # 4.0 Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions