Set the 'valid' field when we have a valid buffer pointer