USB: serial: fix potential stack buffer overflow