diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2021-04-03 10:14:47 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-04-03 10:14:47 -0700 |
commit | f5664825fc2055ed9a0e4988cfc3aeb199dce520 (patch) | |
tree | a1a50df754efe6c7ff7a45e9daa3dc8fcbb5b1d0 | |
parent | a443930a3e8eaf70c8768cc2c923d1d85b71262f (diff) | |
parent | f0acf637d60ffcef3ccb6e279f743e587b3c7359 (diff) | |
download | linux-f5664825fc2055ed9a0e4988cfc3aeb199dce520.tar.bz2 |
Merge tag 'driver-core-5.12-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
Pull driver core fix from Greg KH:
"Here is a single driver core fix for a reported problem with differed
probing. It has been in linux-next for a while with no reported
problems"
* tag 'driver-core-5.12-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
driver core: clear deferred probe reason on probe retry
-rw-r--r-- | drivers/base/dd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/base/dd.c b/drivers/base/dd.c index 9179825ff646..e2cf3b29123e 100644 --- a/drivers/base/dd.c +++ b/drivers/base/dd.c @@ -97,6 +97,9 @@ static void deferred_probe_work_func(struct work_struct *work) get_device(dev); + kfree(dev->p->deferred_probe_reason); + dev->p->deferred_probe_reason = NULL; + /* * Drop the mutex while probing each device; the probe path may * manipulate the deferred list |