Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29051
b: refs/heads/master
c: 304c4c8
h: refs/heads/master
i:
  29049: e1928bf
  29047: f10177b
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Jun 23, 2006
1 parent cb22630 commit e59b13a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 22722051fb6bcbb95c895e68dad10d34a9db7e4d
refs/heads/master: 304c4c841a31c780a45d65e389b07706babf5d36
9 changes: 6 additions & 3 deletions trunk/fs/jbd/transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ static int start_this_handle(journal_t *journal, handle_t *handle)
spin_unlock(&transaction->t_handle_lock);
spin_unlock(&journal->j_state_lock);
out:
kfree(new_transaction);
if (unlikely(new_transaction)) /* It's usually NULL */
kfree(new_transaction);
return ret;
}

Expand Down Expand Up @@ -724,7 +725,8 @@ do_get_write_access(handle_t *handle, struct journal_head *jh,
journal_cancel_revoke(handle, jh);

out:
kfree(frozen_buffer);
if (unlikely(frozen_buffer)) /* It's usually NULL */
kfree(frozen_buffer);

JBUFFER_TRACE(jh, "exit");
return error;
Expand Down Expand Up @@ -903,7 +905,8 @@ int journal_get_undo_access(handle_t *handle, struct buffer_head *bh)
jbd_unlock_bh_state(bh);
out:
journal_put_journal_head(jh);
kfree(committed_data);
if (unlikely(committed_data))
kfree(committed_data);
return err;
}

Expand Down

0 comments on commit e59b13a

Please sign in to comment.