if (buf) kfree(buf); if (buf2) kfree(buf2); 
kfree(buf); kfree(buf2); 
ccw_device_stlck(struct ccw_device *cdev){	void *buf, *buf2;	unsigned long flags;	struct subchannel *sch;	int ret;	if (!cdev)		return -ENODEV;	if (cdev->drv && !cdev->private->options.force)		return -EINVAL;	sch = to_subchannel(cdev->dev.parent);		CIO_TRACE_EVENT(2, "stl lock");	CIO_TRACE_EVENT(2, cdev->dev.bus_id);	buf = kmalloc(32*sizeof(char), GFP_DMA|GFP_KERNEL);	if (!buf)		return -ENOMEM;	buf2 = kmalloc(32*sizeof(char), GFP_DMA|GFP_KERNEL);	if (!buf2) {		kfree(buf);		return -ENOMEM;	}	spin_lock_irqsave(&sch->lock, flags);	ret = cio_enable_subchannel(sch, 3);	if (ret)		goto out_unlock;	/*	 * Setup ccw. We chain an unconditional reserve and a release so we	 * only break the lock.	 */	cdev->private->iccws[0].cmd_code = CCW_CMD_STLCK;	cdev->private->iccws[0].cda = (__u32) __pa(buf);	cdev->private->iccws[0].count = 32;	cdev->private->iccws[0].flags = CCW_FLAG_CC;	cdev->private->iccws[1].cmd_code = CCW_CMD_RELEASE;	cdev->private->iccws[1].cda = (__u32) __pa(buf2);	cdev->private->iccws[1].count = 32;	cdev->private->iccws[1].flags = 0;	ret = cio_start(sch, cdev->private->iccws, 0);	if (ret) {		cio_disable_subchannel(sch); //FIXME: return code?		goto out_unlock;	}	cdev->private->irb.scsw.actl |= SCSW_ACTL_START_PEND;	spin_unlock_irqrestore(&sch->lock, flags);	wait_event(cdev->private->wait_q, cdev->private->irb.scsw.actl == 0);	spin_lock_irqsave(&sch->lock, flags);	cio_disable_subchannel(sch); //FIXME: return code?	if ((cdev->private->irb.scsw.dstat !=	     (DEV_STAT_CHN_END|DEV_STAT_DEV_END)) ||	    (cdev->private->irb.scsw.cstat != 0))		ret = -EIO;	/* Clear irb. */	memset(&cdev->private->irb, 0, sizeof(struct irb));out_unlock:	if (buf)		kfree(buf);	if (buf2)		kfree(buf2);	spin_unlock_irqrestore(&sch->lock, flags);	return ret;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/17fd682e544556a2a829e94383239c029bb21c5e/device_ops.c/clean/drivers/s390/cio/device_ops.c