lkml.org 
[lkml]   [2021]   [Aug]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v2 1/2] media: staging/intel-ipu3: css: Fix wrong size comparison
    I missed that you change < sizeof() to <= sizeof()...  Sakari is right
    that it should be < sizeof(). <= doesn't work at all ever. If you
    wanted a higher limit then the next limit woule be:

    if (css->fw->size < struct_size(css->fwp, binary_header, 1))

    regards,
    dan carpenter

    \
     
     \ /
      Last update: 2021-08-04 14:40    [W:3.622 / U:0.364 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site