Re: [PATCH] BTRFS: Fix mem leak in btrfs_submit_direct()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 13 Mar 2011, Jesper Juhl wrote:

> When memory is low and the allocation for 'dip->csums' fail in 
> fs/btrfs/inode.c:btrfs_submit_direct() we make the situation worse by 
> leaking the memory allocated to 'dip'.
> This patch removes the leak by kfree()'ing 'dip' before jumping to the 
> 'free_ordered' label.
> 

Ignore this patch. I see now that Daniel J Blueman already submitted a fix 
for this issue. Sorry about the noise.


-- 
Jesper Juhl <jj@xxxxxxxxxxxxx>            http://www.chaosbits.net/
Plain text mails only, please.
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux