diff options
| author | Jan Kara <[email protected]> | 2021-12-14 10:04:29 +0000 |
|---|---|---|
| committer | Jan Kara <[email protected]> | 2021-12-15 12:08:34 +0000 |
| commit | f05f2429eec60851b98bdde213de31dab697c01b (patch) | |
| tree | a235301c82f3a64a4105441286f5800f7a4f54cb /fs/btrfs/delayed-ref.c | |
| parent | reiserfs: don't use congestion_wait() (diff) | |
| download | kernel-f05f2429eec60851b98bdde213de31dab697c01b.tar.gz kernel-f05f2429eec60851b98bdde213de31dab697c01b.zip | |
udf: Fix error handling in udf_new_inode()
When memory allocation of iinfo or block allocation fails, already
allocated struct udf_inode_info gets freed with iput() and
udf_evict_inode() may look at inode fields which are not properly
initialized. Fix it by marking inode bad before dropping reference to it
in udf_new_inode().
Reported-by: [email protected]
Signed-off-by: Jan Kara <[email protected]>
Diffstat (limited to 'fs/btrfs/delayed-ref.c')
0 files changed, 0 insertions, 0 deletions
