diff options
author | Adrian Salido <salidoa@google.com> | 2017-04-26 01:55:26 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-05-25 15:30:12 +0200 |
commit | 6265539776a0810b7ce6398c27866ddb9c6bd154 (patch) | |
tree | 4d58fb16d141567390c35553bbb2af47fd82c9c9 /lib/kobject_uevent.c | |
parent | Linux 4.12-rc2 (diff) | |
download | linux-6265539776a0810b7ce6398c27866ddb9c6bd154.tar.xz linux-6265539776a0810b7ce6398c27866ddb9c6bd154.zip |
driver core: platform: fix race condition with driver_override
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 'lib/kobject_uevent.c')
0 files changed, 0 insertions, 0 deletions