git.samba.org
/
sfrench
/
cifs-2.6.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
893d4d9
)
s390/sclp: fix memblock_phys_free() vs memblock_free() confusion
author
Heiko Carstens
<hca@linux.ibm.com>
Mon, 13 Dec 2021 17:59:02 +0000
(18:59 +0100)
committer
Heiko Carstens
<hca@linux.ibm.com>
Thu, 16 Dec 2021 18:58:06 +0000
(19:58 +0100)
memblock_phys_free() is used on a virtual address. Fix this by using
memblock_free().
Note: this doesn't fix a bug currently, since virtual and physical
addresses are identical.
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/char/sclp_early.c
patch
|
blob
|
history
diff --git
a/drivers/s390/char/sclp_early.c
b/drivers/s390/char/sclp_early.c
index b64feab62caa8b4179718bcd94f9c07c67e7580c..e9943a86c361e7ac341211bdd26a494332734306 100644
(file)
--- a/
drivers/s390/char/sclp_early.c
+++ b/
drivers/s390/char/sclp_early.c
@@
-139,7
+139,7
@@
int __init sclp_early_get_core_info(struct sclp_core_info *info)
}
sclp_fill_core_info(info, sccb);
out:
- memblock_
phys_free((unsigned long)
sccb, length);
+ memblock_
free(
sccb, length);
return rc;
}