Fix krealloc
authorRonald G. Minnich <rminnich@google.com>
Thu, 2 Jan 2014 17:16:02 +0000 (09:16 -0800)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 17 Jan 2014 22:35:29 +0000 (14:35 -0800)
commit782b10e960f8f7e8379e8707ed1bd5a78619e4b7
tree8a5c016481a773fce9da35a4772a801c192334ed
parented81dcc37070ed8ff6c0ef56311c559c04fb7ab0
Fix krealloc

It was fairly badly broken.

It's legal to call with a NULL pointer.

It's required to save the old contents to new :-), else it's not much of a RE-allocator.

Signed-off-by: Ronald G. Minnich <rminnich@google.com>
kern/src/kmalloc.c