In ext4_update_inline_data(), if ext4_xattr_ibody_get() fails for any reason, it's best if we just fail as opposed to stumbling on, especially if the failure is EFSCORRUPTED.
Unified · Split
| @@ -360,7 +360,7 @@ static int ext4_update_inline_data(handle_t *handle, struct inode *inode, · 359 unmodified lines | ||
| 360 | 360 | |
| 361 | 361 | error = ext4_xattr_ibody_get(inode, i.name_index, i.name, |
| 362 | 362 | value, len); |
| 363 | − if (error == -ENODATA) | |
| 363 | + if (error < 0) | |
| 364 | 364 | goto out; |
| 365 | 365 | |
| 366 | 366 | BUFFER_TRACE(is.iloc.bh, "get_write_access"); |