aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorSuzuki K Poulose <[email protected]>2018-01-09 16:12:18 +0000
committerCatalin Marinas <[email protected]>2018-01-15 18:00:34 +0000
commit67948af41f2e6818edeeba5182811c704d484949 (patch)
tree11e0c889cc1c62d3ebfef4815b007a48d5e9c7f2 /net/unix/sysctl_net_unix.c
parentbb48711800e6d7aedbf4dfd3367e0ab1270a6bea (diff)
arm64: capabilities: Handle duplicate entries for a capability
Sometimes a single capability could be listed multiple times with differing matches(), e.g, CPU errata for different MIDR versions. This breaks verify_local_cpu_feature() and this_cpu_has_cap() as we stop checking for a capability on a CPU with the first entry in the given table, which is not sufficient. Make sure we run the checks for all entries of the same capability. We do this by fixing __this_cpu_has_cap() to run through all the entries in the given table for a match and reuse it for verify_local_cpu_feature(). Cc: Mark Rutland <[email protected]> Cc: Will Deacon <[email protected]> Acked-by: Marc Zyngier <[email protected]> Signed-off-by: Suzuki K Poulose <[email protected]> Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions