[PATCH 3.18 017/144] media: af9035: prevent buffer overflow on write