mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 20:54:03 +02:00
dm-integrity: clean-up error handling
Add "goto bad" to error handling. This commit doesn't fix any bug, just cleans up the code. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Assisted-by: Claude:claude-opus-4.6
This commit is contained in:
parent
70094662c1
commit
4e53905a9d
|
|
@ -4634,6 +4634,7 @@ static int create_journal(struct dm_integrity_c *ic, char **error)
|
|||
if (!ic->journal_tree) {
|
||||
*error = "Could not allocate memory for journal tree";
|
||||
r = -ENOMEM;
|
||||
goto bad;
|
||||
}
|
||||
bad:
|
||||
kfree(crypt_data);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user