Re: [PATCH] make mempool_destroy resilient against NULL pointers.

2005-04-08 Thread Jesper Juhl
On Fri, 8 Apr 2005, Andrew Morton wrote: > Jesper Juhl <[EMAIL PROTECTED]> wrote: > > > > > > General rule (as I understand it) is that functions that free resources > > should handle being passed NULL pointers - mempool_destroy() will > > currently explode if passed a NULL pointer, the patch

Re: [PATCH] make mempool_destroy resilient against NULL pointers.

2005-04-08 Thread Andrew Morton
Jesper Juhl <[EMAIL PROTECTED]> wrote: > > > General rule (as I understand it) is that functions that free resources > should handle being passed NULL pointers - mempool_destroy() will > currently explode if passed a NULL pointer, the patch below makes it safe > to pass it NULL. The best

[PATCH] make mempool_destroy resilient against NULL pointers.

2005-04-08 Thread Jesper Juhl
General rule (as I understand it) is that functions that free resources should handle being passed NULL pointers - mempool_destroy() will currently explode if passed a NULL pointer, the patch below makes it safe to pass it NULL. Signed-off-by: Jesper Juhl <[EMAIL PROTECTED]> --- mempool.c |

[PATCH] make mempool_destroy resilient against NULL pointers.

2005-04-08 Thread Jesper Juhl
General rule (as I understand it) is that functions that free resources should handle being passed NULL pointers - mempool_destroy() will currently explode if passed a NULL pointer, the patch below makes it safe to pass it NULL. Signed-off-by: Jesper Juhl [EMAIL PROTECTED] --- mempool.c |

Re: [PATCH] make mempool_destroy resilient against NULL pointers.

2005-04-08 Thread Andrew Morton
Jesper Juhl [EMAIL PROTECTED] wrote: General rule (as I understand it) is that functions that free resources should handle being passed NULL pointers - mempool_destroy() will currently explode if passed a NULL pointer, the patch below makes it safe to pass it NULL. The best response to

Re: [PATCH] make mempool_destroy resilient against NULL pointers.

2005-04-08 Thread Jesper Juhl
On Fri, 8 Apr 2005, Andrew Morton wrote: Jesper Juhl [EMAIL PROTECTED] wrote: General rule (as I understand it) is that functions that free resources should handle being passed NULL pointers - mempool_destroy() will currently explode if passed a NULL pointer, the patch below makes