mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
ACPI: NFIT: Fix unlock on error in scrub_show()
We change the locking in this function and forgot to update this error
path so we are accidentally still holding the "dev->lockdep_mutex".
Fixes: 87a30e1f05 ("driver-core, libnvdimm: Let device subsystems add local lockdep coverage")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Ira Weiny <[email protected]>
Acked-by: Dan Williams <[email protected]>
Cc: 5.3+ <[email protected]> # 5.3+
Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
parent
7d194c2100
commit
edffc70f50
1 changed files with 1 additions and 1 deletions
|
|
@ -1322,7 +1322,7 @@ static ssize_t scrub_show(struct device *dev,
|
|||
nfit_device_lock(dev);
|
||||
nd_desc = dev_get_drvdata(dev);
|
||||
if (!nd_desc) {
|
||||
device_unlock(dev);
|
||||
nfit_device_unlock(dev);
|
||||
return rc;
|
||||
}
|
||||
acpi_desc = to_acpi_desc(nd_desc);
|
||||
|
|
|
|||
Loading…
Reference in a new issue