[PATCH 6.1 45/98] media: s5p-jpeg: prevent buffer overflows