IPW_DEBUG_ERROR( 
printk(KERN_ERR DRV_NAME ": " 
static int ipw2100_msg_allocate(struct ipw2100_priv *priv){	int i, j, err = -EINVAL;	void *v;	dma_addr_t p;	priv->msg_buffers = (struct ipw2100_tx_packet *)kmalloc(		IPW_COMMAND_POOL_SIZE * sizeof(struct ipw2100_tx_packet),		GFP_KERNEL);	if (!priv->msg_buffers) {		IPW_DEBUG_ERROR("%s: PCI alloc failed for msg "		       "buffers.\n", priv->net_dev->name);		return -ENOMEM;	}	for (i = 0; i < IPW_COMMAND_POOL_SIZE; i++) {		v = pci_alloc_consistent(			priv->pci_dev,			sizeof(struct ipw2100_cmd_header),			&p);		if (!v) {			IPW_DEBUG_ERROR(			       "%s: PCI alloc failed for msg "			       "buffers.\n",			       priv->net_dev->name);			err = -ENOMEM;			break;		}		memset(v, 0, sizeof(struct ipw2100_cmd_header));		priv->msg_buffers[i].type = COMMAND;		priv->msg_buffers[i].info.c_struct.cmd =			(struct ipw2100_cmd_header*)v;		priv->msg_buffers[i].info.c_struct.cmd_phys = p;	}	if (i == IPW_COMMAND_POOL_SIZE)		return 0;	for (j = 0; j < i; j++) {		pci_free_consistent(			priv->pci_dev,			sizeof(struct ipw2100_cmd_header),			priv->msg_buffers[j].info.c_struct.cmd,			priv->msg_buffers[j].info.c_struct.cmd_phys);	}	kfree(priv->msg_buffers);	priv->msg_buffers = NULL;	return err;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/797b4f7652a4dcf06bdf6a8c870991acdf56c03d/ipw2100.c/buggy/drivers/net/wireless/ipw2100.c