Re: [PATCH 1/3] cw1200: Don't leak memory if krealloc failes

From: Johannes Berg
Date: Fri Sep 30 2016 - 08:30:13 EST



> + tmp = krealloc(buf->begin, size, GFP_KERNEL | GFP_DMA);
> + if (tmp) {
>
I think that check is inverted?

johannes