diff options
Diffstat (limited to 'mm/debug.c')
-rw-r--r-- | mm/debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/debug.c b/mm/debug.c index 45d9eb77b84e..eee9c221280c 100644 --- a/mm/debug.c +++ b/mm/debug.c | |||
@@ -79,7 +79,7 @@ void __dump_page(struct page *page, const char *reason) | |||
79 | pr_warn("ksm "); | 79 | pr_warn("ksm "); |
80 | else if (mapping) { | 80 | else if (mapping) { |
81 | pr_warn("%ps ", mapping->a_ops); | 81 | pr_warn("%ps ", mapping->a_ops); |
82 | if (mapping->host->i_dentry.first) { | 82 | if (mapping->host && mapping->host->i_dentry.first) { |
83 | struct dentry *dentry; | 83 | struct dentry *dentry; |
84 | dentry = container_of(mapping->host->i_dentry.first, struct dentry, d_u.d_alias); | 84 | dentry = container_of(mapping->host->i_dentry.first, struct dentry, d_u.d_alias); |
85 | pr_warn("name:\"%pd\" ", dentry); | 85 | pr_warn("name:\"%pd\" ", dentry); |