struct bcm_mini_adapter *ad)
{
struct bcm_ioctl_buffer io_buff;
- PVOID pvBuffer = NULL;
+ PVOID buff = NULL;
INT status;
/* Copy Ioctl Buffer structure */
if (io_buff.InputLength > MAX_CNTL_PKT_SIZE)
return -EINVAL;
- pvBuffer = memdup_user(io_buff.InputBuffer,
+ buff = memdup_user(io_buff.InputBuffer,
io_buff.InputLength);
- if (IS_ERR(pvBuffer))
- return PTR_ERR(pvBuffer);
+ if (IS_ERR(buff))
+ return PTR_ERR(buff);
down(&ad->LowPowerModeSync);
status = wait_event_interruptible_timeout(
status = STATUS_FAILURE;
goto cntrlEnd;
}
- status = CopyBufferToControlPacket(ad, (PVOID)pvBuffer);
+ status = CopyBufferToControlPacket(ad, (PVOID)buff);
cntrlEnd:
up(&ad->LowPowerModeSync);
- kfree(pvBuffer);
+ kfree(buff);
return status;
}
struct bcm_ioctl_buffer io_buff;
UINT uiTempVar = 0;
INT status = STATUS_FAILURE;
- PCHAR pvBuffer = NULL;
+ PCHAR buff = NULL;
if ((ad->IdleMode == TRUE) ||
(ad->bShutStatus == TRUE) ||
if (io_buff.InputLength < sizeof(ULONG) * 2)
return -EINVAL;
- pvBuffer = memdup_user(io_buff.InputBuffer,
+ buff = memdup_user(io_buff.InputBuffer,
io_buff.InputLength);
- if (IS_ERR(pvBuffer))
- return PTR_ERR(pvBuffer);
+ if (IS_ERR(buff))
+ return PTR_ERR(buff);
- pBulkBuffer = (struct bcm_bulk_wrm_buffer *)pvBuffer;
+ pBulkBuffer = (struct bcm_bulk_wrm_buffer *)buff;
if (((ULONG)pBulkBuffer->Register & 0x0F000000) != 0x0F000000 ||
((ULONG)pBulkBuffer->Register & 0x3)) {
BCM_DEBUG_PRINT (ad, DBG_TYPE_PRINTK, 0, 0,
"WRM Done On invalid Address : %x Access Denied.\n",
(int)pBulkBuffer->Register);
- kfree(pvBuffer);
+ kfree(buff);
return -EINVAL;
}
(uiTempVar == EEPROM_REJECT_REG_4)) &&
(cmd == IOCTL_BCM_REGISTER_WRITE)) {
- kfree(pvBuffer);
+ kfree(buff);
BCM_DEBUG_PRINT (ad, DBG_TYPE_PRINTK, 0, 0,
"EEPROM Access Denied, not in VSG Mode\n");
return -EFAULT;
if (status != STATUS_SUCCESS)
BCM_DEBUG_PRINT(ad, DBG_TYPE_PRINTK, 0, 0, "WRM Failed\n");
- kfree(pvBuffer);
+ kfree(buff);
return status;
}