Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338171
b: refs/heads/master
c: 3712af0
h: refs/heads/master
i:
  338169: 106b539
  338167: 9af9508
v: v3
  • Loading branch information
Kevin McKinney authored and Greg Kroah-Hartman committed Nov 27, 2012
1 parent 2cec47b commit ea5c0ea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 98e341d3ddb1eec46f7164a7a895149c671d10f5
refs/heads/master: 3712af0c0d6889408c17138671814ab315ff53ce
8 changes: 4 additions & 4 deletions trunk/drivers/staging/bcm/Bcmchar.c
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,7 @@ static long bcm_char_ioctl(struct file *filp, UINT cmd, ULONG arg)

case IOCTL_BCM_NVM_READ:
case IOCTL_BCM_NVM_WRITE: {
NVM_READWRITE stNVMReadWrite;
struct bcm_nvm_readwrite stNVMReadWrite;
PUCHAR pReadData = NULL;
ULONG ulDSDMagicNumInUsrBuff = 0;
struct timeval tv0, tv1;
Expand All @@ -1289,7 +1289,7 @@ static long bcm_char_ioctl(struct file *filp, UINT cmd, ULONG arg)

if (copy_from_user(&stNVMReadWrite,
(IOCTL_BCM_NVM_READ == cmd) ? IoBuffer.OutputBuffer : IoBuffer.InputBuffer,
sizeof(NVM_READWRITE)))
sizeof(struct bcm_nvm_readwrite)))
return -EFAULT;

/*
Expand Down Expand Up @@ -1842,7 +1842,7 @@ static long bcm_char_ioctl(struct file *filp, UINT cmd, ULONG arg)
break;

case IOCTL_BCM_NVM_RAW_READ: {
NVM_READWRITE stNVMRead;
struct bcm_nvm_readwrite stNVMRead;
INT NOB ;
INT BuffSize ;
INT ReadOffset = 0;
Expand All @@ -1861,7 +1861,7 @@ static long bcm_char_ioctl(struct file *filp, UINT cmd, ULONG arg)
return -EFAULT;
}

if (copy_from_user(&stNVMRead, IoBuffer.OutputBuffer, sizeof(NVM_READWRITE)))
if (copy_from_user(&stNVMRead, IoBuffer.OutputBuffer, sizeof(struct bcm_nvm_readwrite)))
return -EFAULT;

NOB = stNVMRead.uiNumBytes;
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/bcm/Ioctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ typedef struct _DEVICE_DRIVER_INFO {
unsigned int u32Reserved[10];
} DEVICE_DRIVER_INFO;

typedef struct _NVM_READWRITE {
struct bcm_nvm_readwrite {
void __user *pBuffer;
uint32_t uiOffset;
uint32_t uiNumBytes;
bool bVerify;
} NVM_READWRITE, *PNVM_READWRITE;
};

struct bcm_bulk_wrm_buffer {
unsigned long Register;
Expand Down

0 comments on commit ea5c0ea

Please sign in to comment.