lkml.org 
[lkml]   [2016]   [Sep]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH 1/3] cw1200: Don't leak memory if krealloc failes
    From
    Date

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

    johannes

    \
     
     \ /
      Last update: 2016-09-30 14:30    [W:4.691 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site