[RFC] Abort on memory allocation failure

2013-01-25 Thread Ian Kumlien
b295b475d60d90b6e66336f28540be2f199ca9b6 Mon Sep 17 00:00:00 2001 From: Ian Kumlien po...@demius.net Date: Fri, 25 Jan 2013 23:44:48 +0100 Subject: [PATCH] [RFC] Abort on memory allocation failure. declare btrfs_calloc|malloc|strdup|strndup, verify the memory and abort() if allocation fails. Please verify, there is a small

Re: [RFC] Abort on memory allocation failure

2013-01-25 Thread cwillu
On Fri, Jan 25, 2013 at 4:55 PM, Ian Kumlien po...@vapor.com wrote: Hi, Could someone do a sanity check of this, i have removed some of the checking code that is no longer needed but i would prefer to have reviewers. I haven't looked much at the code, mainly been focusing on the grunt work

Re: [RFC] Abort on memory allocation failure

2013-01-25 Thread Ian Kumlien
On Fri, Jan 25, 2013 at 05:55:16PM -0600, cwillu wrote: On Fri, Jan 25, 2013 at 4:55 PM, Ian Kumlien po...@vapor.com wrote: Hi, Could someone do a sanity check of this, i have removed some of the checking code that is no longer needed but i would prefer to have reviewers. I haven't

Re: [RFC] Abort on memory allocation failure

2013-01-25 Thread Hugo Mills
On Sat, Jan 26, 2013 at 01:02:21AM +0100, Ian Kumlien wrote: On Fri, Jan 25, 2013 at 05:55:16PM -0600, cwillu wrote: On Fri, Jan 25, 2013 at 4:55 PM, Ian Kumlien po...@vapor.com wrote: Hi, Could someone do a sanity check of this, i have removed some of the checking code that is no

[RFC] Abort on memory allocation failure, try three - using git send-email

2013-01-25 Thread Ian Kumlien
Sorry about that, selecting a range in git send-email isn't really ovious the first time you try to select a change in the middle of a log. -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org More majordomo info at

[PATCH] [RFC] Abort on memory allocation failure.

2013-01-25 Thread Ian Kumlien
declare btrfs_calloc|malloc|strdup|strndup, verify the memory and abort() if allocation fails. Please verify, there is a small glitch about strndup being redefined during compilation - haven't had time to figure out why this happened. Another issue is that there seems to be a malloc failure