Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 281409
b: refs/heads/master
c: b72a7c8
h: refs/heads/master
i:
  281407: 08f1203
v: v3
  • Loading branch information
Kevin McKinney authored and Greg Kroah-Hartman committed Dec 22, 2011
1 parent d87ff00 commit 3bea085
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: d1840eda7add1d0fdee5cf7ad2ac7ad0f656eecb
refs/heads/master: b72a7c859efc9e0cf13600b30a555457a08dd86f
6 changes: 5 additions & 1 deletion trunk/drivers/staging/bcm/Bcmchar.c
Original file line number Diff line number Diff line change
Expand Up @@ -999,11 +999,15 @@ static long bcm_char_ioctl(struct file *filp, UINT cmd, ULONG arg)
}

case IOCTL_BCM_GET_DRIVER_VERSION: {
ulong len;

/* Copy Ioctl Buffer structure */
if (copy_from_user(&IoBuffer, argp, sizeof(IOCTL_BUFFER)))
return -EFAULT;

if (copy_to_user(IoBuffer.OutputBuffer, VER_FILEVERSION_STR, IoBuffer.OutputLength))
len = min_t(ulong, IoBuffer.OutputLength, strlen(VER_FILEVERSION_STR) + 1);

if (copy_to_user(IoBuffer.OutputBuffer, VER_FILEVERSION_STR, len))
return -EFAULT;
Status = STATUS_SUCCESS;
break;
Expand Down

0 comments on commit 3bea085

Please sign in to comment.