[PATCH 4.14 24/65] USB: serial: keyspan: fix NULL-derefs on open() and write()