diff options
Diffstat (limited to 'fs/ubifs/debug.c')
| -rw-r--r-- | fs/ubifs/debug.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/ubifs/debug.c b/fs/ubifs/debug.c index 7ed13e1e216a..4cfb3e82c56f 100644 --- a/fs/ubifs/debug.c +++ b/fs/ubifs/debug.c | |||
| @@ -2032,6 +2032,8 @@ static int check_leaf(struct ubifs_info *c, struct ubifs_zbranch *zbr, | |||
| 2032 | long long blk_offs; | 2032 | long long blk_offs; |
| 2033 | struct ubifs_data_node *dn = node; | 2033 | struct ubifs_data_node *dn = node; |
| 2034 | 2034 | ||
| 2035 | ubifs_assert(zbr->len >= UBIFS_DATA_NODE_SZ); | ||
| 2036 | |||
| 2035 | /* | 2037 | /* |
| 2036 | * Search the inode node this data node belongs to and insert | 2038 | * Search the inode node this data node belongs to and insert |
| 2037 | * it to the RB-tree of inodes. | 2039 | * it to the RB-tree of inodes. |
| @@ -2060,6 +2062,8 @@ static int check_leaf(struct ubifs_info *c, struct ubifs_zbranch *zbr, | |||
| 2060 | struct ubifs_dent_node *dent = node; | 2062 | struct ubifs_dent_node *dent = node; |
| 2061 | struct fsck_inode *fscki1; | 2063 | struct fsck_inode *fscki1; |
| 2062 | 2064 | ||
| 2065 | ubifs_assert(zbr->len >= UBIFS_DENT_NODE_SZ); | ||
| 2066 | |||
| 2063 | err = ubifs_validate_entry(c, dent); | 2067 | err = ubifs_validate_entry(c, dent); |
| 2064 | if (err) | 2068 | if (err) |
| 2065 | goto out_dump; | 2069 | goto out_dump; |
