dev_err(&chip->pci_dev->dev, "Operation Canceled\n"); 
dev_err(chip->dev, "Operation Canceled\n"); 
static ssize_t tpm_transmit(struct tpm_chip *chip, const char *buf,			    size_t bufsiz){	ssize_t rc;	u32 count;	unsigned long stop;	count = be32_to_cpu(*((__be32 *) (buf + 2)));	if (count == 0)		return -ENODATA;	if (count > bufsiz) {		dev_err(&chip->pci_dev->dev,			"invalid count value %x %zx \n", count, bufsiz);		return -E2BIG;	}	down(&chip->tpm_mutex);	if ((rc = chip->vendor->send(chip, (u8 *) buf, count)) < 0) {		dev_err(&chip->pci_dev->dev,			"tpm_transmit: tpm_send: error %zd\n", rc);		goto out;	}	stop = jiffies + 2 * 60 * HZ;	do {		u8 status = chip->vendor->status(chip);		if ((status & chip->vendor->req_complete_mask) ==		    chip->vendor->req_complete_val) {			goto out_recv;		}		if ((status == chip->vendor->req_canceled)) {			dev_err(&chip->pci_dev->dev, "Operation Canceled\n");			rc = -ECANCELED;			goto out;		}		msleep(TPM_TIMEOUT);	/* CHECK */		rmb();	} while (time_before(jiffies, stop));	chip->vendor->cancel(chip);	dev_err(&chip->pci_dev->dev, "Operation Timed out\n");	rc = -ETIME;	goto out;out_recv:	rc = chip->vendor->recv(chip, (u8 *) buf, bufsiz);	if (rc < 0)		dev_err(&chip->pci_dev->dev,			"tpm_transmit: tpm_recv: error %zd\n", rc);out:	up(&chip->tpm_mutex);	return rc;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/e659a3fe2027b19ecd8abb7ad79253672763454b/tpm.c/buggy/drivers/char/tpm/tpm.c