On Wed, 2007-07-25 at 11:53 -0700, Christoph Lameter wrote: > It will give you a ZERO_SIZE_PTR > > void *krealloc(const void *p, size_t new_size, gfp_t flags) > { > void *ret; > size_t ks; > > if (unlikely(!new_size)) { > kfree(p); > return ZERO_SIZE_PTR; > } Oh, I thought looked and it returned NULL. Did it change or did I just look wrong? :) johannes
Attachment:
signature.asc
Description: This is a digitally signed message part
- References:
- [RFC] fix slub krealloc()
- From: Johannes Berg <[email protected]>
- Re: [RFC] fix slub krealloc()
- From: Christoph Lameter <[email protected]>
- Re: [RFC] fix slub krealloc()
- From: Andrew Morton <[email protected]>
- Re: [RFC] fix slub krealloc()
- From: Christoph Lameter <[email protected]>
- Re: [RFC] fix slub krealloc()
- From: Johannes Berg <[email protected]>
- Re: [RFC] fix slub krealloc()
- From: Christoph Lameter <[email protected]>
- [RFC] fix slub krealloc()
- Prev by Date: Re: [patch] add kdump_after_notifier
- Next by Date: Q: PCI-X @ 266MHz on HP rx6600 (Qlogic 4Gb FC HBA)
- Previous by thread: Re: [RFC] fix slub krealloc()
- Next by thread: [PATCH] i386: Decouple PAE from CONFIG_CMPXCHG64
- Index(es):