forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 093a6c67005148ae32a5c9e4553491b9f5c2457b
kernel/include/trace/events/writeback.h
....@@ -67,7 +67,7 @@
6767 strscpy_pad(__entry->name,
6868 bdi_dev_name(mapping ? inode_to_bdi(mapping->host) :
6969 NULL), 32);
70
- __entry->ino = mapping ? mapping->host->i_ino : 0;
70
+ __entry->ino = (mapping && mapping->host) ? mapping->host->i_ino : 0;
7171 __entry->index = page->index;
7272 ),
7373