commit | 6265539776a0810b7ce6398c27866ddb9c6bd154 | [log] [tgz] |
---|---|---|
author | Adrian Salido <salidoa@google.com> | Tue Apr 25 16:55:26 2017 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu May 25 15:30:12 2017 +0200 |
tree | 4d58fb16d141567390c35553bbb2af47fd82c9c9 | |
parent | 08332893e37af6ae779367e78e444f8f9571511d [diff] |
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>