(Answering my own question): I got in touch with the author of When HARLIE Was One and he confirms that the part of the story containing the concept of a computer virus was first published as a short story in Galaxy magazine in 1969.  So Crighton was not the first to think of that.