[PATCH openEuler-5.10 115/119] tty: hvc: replace BUG_ON() with negative return value