diff options
author | Adrian Salido <salidoa@google.com> | 2017-04-25 16:55:26 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-07-15 10:14:38 +0200 |
commit | 61b0972bd40ae77fabb019e26402ac17906fcb15 (patch) | |
tree | 4b154a81ffbca1adfa8c7e937bc80c91738e6e2f /arch/mips | |
parent | 8686d7d2e93b977f4cc3cb28cd0c64dcfcc8a865 (diff) | |
download | linux-stable-61b0972bd40ae77fabb019e26402ac17906fcb15.tar.gz linux-stable-61b0972bd40ae77fabb019e26402ac17906fcb15.tar.bz2 linux-stable-61b0972bd40ae77fabb019e26402ac17906fcb15.zip |
driver core: platform: fix race condition with driver_override
commit 6265539776a0810b7ce6398c27866ddb9c6bd154 upstream.
The driver_override implementation is susceptible to race condition when
different threads are reading vs storing a different driver override.
Add locking to avoid race condition.
Fixes: 3d713e0e382e ("driver core: platform: add device binding path 'driver_override'")
Cc: stable@vger.kernel.org
Signed-off-by: Adrian Salido <salidoa@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/mips')
0 files changed, 0 insertions, 0 deletions