Merge "lmkd: Avoid potential out of buffer write"