forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-16 8d2a02b24d66aa359e83eebc1ed3c0f85367a1cb
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