[PATCH 6.11 078/184] media: s5p-jpeg: prevent buffer overflows