Signed-off-by: Mariusz Kozlowski <[email protected]>
fs/reiser4/plugin/inode_ops_rename.c | 28474 -> 28344 (-130 bytes)
fs/reiser4/plugin/inode_ops_rename.o | 142600 -> 142476 (-124 bytes)
fs/reiser4/plugin/inode_ops_rename.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
--- linux-2.6.23-rc1-mm1-a/fs/reiser4/plugin/inode_ops_rename.c 2007-07-26 13:07:46.000000000 +0200
+++ linux-2.6.23-rc1-mm1-b/fs/reiser4/plugin/inode_ops_rename.c 2007-07-31 15:02:58.000000000 +0200
@@ -392,16 +392,14 @@ int reiser4_rename_common(struct inode *
if (IS_ERR(ctx))
return PTR_ERR(ctx);
- old_entry = kmalloc(3 * sizeof(*old_entry) + 2 * sizeof(*new_lh) +
+ old_entry = kzalloc(3 * sizeof(*old_entry) + 2 * sizeof(*new_lh) +
sizeof(*dotdot_name) + sizeof(*dataonstack),
reiser4_ctx_gfp_mask_get());
- if (old_entry == NULL) {
+ if (!old_entry) {
context_set_commit_async(ctx);
reiser4_exit_context(ctx);
return RETERR(-ENOMEM);
}
- memset(old_entry, 0, 3 * sizeof(*old_entry) + 2 * sizeof(*new_lh) +
- sizeof(*dotdot_name) + sizeof(*dataonstack));
new_entry = old_entry + 1;
dotdot_entry = old_entry + 2;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]