[PATCH 5.4 21/66] media: s5p-jpeg: prevent buffer overflows