Architectures like powerpc use different address range to map ioremap and vmalloc range. The memunmap() check used by the nvdimm layer was wrongly using is_vmalloc_addr() to check for ioremap range which fails for ppc64. This result in ppc64 not freeing the ioremap mapping. The side effect of this is an unbind failure during module unload with papr_scm nvdimm driver
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -633,6 +633,11 @@ static inline bool is_vmalloc_addr(const void *x) · 632 unmodified lines | |||
| 633 | return false; | 633 | return false; |
| 634 | #endif | 634 | #endif |
| 635 | } | 635 | } |
| 636 | |||
| 637 | #ifndef is_ioremap_addr | ||
| 638 | #define is_ioremap_addr(x) is_vmalloc_addr(x) | ||
| 639 | #endif | ||
| 640 | |||
| 636 | #ifdef CONFIG_MMU | 641 | #ifdef CONFIG_MMU |
| 637 | extern int is_vmalloc_or_module_addr(const void *x); | 642 | extern int is_vmalloc_or_module_addr(const void *x); |
| 638 | #else | 643 | #else |