hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/kernel/iomem.c
....@@ -55,7 +55,7 @@
5555 *
5656 * MEMREMAP_WB - matches the default mapping for System RAM on
5757 * the architecture. This is usually a read-allocate write-back cache.
58
- * Morever, if MEMREMAP_WB is specified and the requested remap region is RAM
58
+ * Moreover, if MEMREMAP_WB is specified and the requested remap region is RAM
5959 * memremap() will bypass establishing a new mapping and instead return
6060 * a pointer into the direct map.
6161 *
....@@ -86,7 +86,7 @@
8686 /* Try all mapping types requested until one returns non-NULL */
8787 if (flags & MEMREMAP_WB) {
8888 /*
89
- * MEMREMAP_WB is special in that it can be satisifed
89
+ * MEMREMAP_WB is special in that it can be satisfied
9090 * from the direct map. Some archs depend on the
9191 * capability of memremap() to autodetect cases where
9292 * the requested range is potentially in System RAM.
....@@ -121,7 +121,7 @@
121121
122122 void memunmap(void *addr)
123123 {
124
- if (is_vmalloc_addr(addr))
124
+ if (is_ioremap_addr(addr))
125125 iounmap((void __iomem *) addr);
126126 }
127127 EXPORT_SYMBOL(memunmap);