Re: [PATCH v2 1/2] media: staging/intel-ipu3: css: Fix wrong size comparison

From: Dan Carpenter
Date: Wed Aug 04 2021 - 08:38:39 EST


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