summaryrefslogtreecommitdiffstats
path: root/drivers/staging/dgnc/dgnc_mgmt.c
diff options
context:
space:
mode:
authorLidza Louina <lidza.louina@gmail.com>2013-10-04 12:18:30 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-05 17:52:58 -0700
commita07bf39a65cb5eb4e38426afc7d5e00d560211da (patch)
tree3f0cc0e7031574a2097f32a23372232ea44d68cf /drivers/staging/dgnc/dgnc_mgmt.c
parent8159fd1be0f04c3cf11098942f277dc0f1239159 (diff)
downloadop-kernel-dev-a07bf39a65cb5eb4e38426afc7d5e00d560211da.zip
op-kernel-dev-a07bf39a65cb5eb4e38426afc7d5e00d560211da.tar.gz
staging: dgnc: changes arguments in sizeof
The arguments that were passed into sizeof were generic. This patch changes this by putting the actual item that we need a size of instead. For example: - kzalloc(sizeof(struct dgnc_board), GFP_KERNEL); + kzalloc(sizeof(*brd), GFP_KERNEL); Signed-off-by: Lidza Louina <lidza.louina@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgnc/dgnc_mgmt.c')
-rw-r--r--drivers/staging/dgnc/dgnc_mgmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/dgnc/dgnc_mgmt.c b/drivers/staging/dgnc/dgnc_mgmt.c
index bb39f5d..354458c 100644
--- a/drivers/staging/dgnc/dgnc_mgmt.c
+++ b/drivers/staging/dgnc/dgnc_mgmt.c
@@ -209,7 +209,7 @@ long dgnc_mgmt_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
uint board = 0;
uint channel = 0;
- if (copy_from_user(&ni, uarg, sizeof(struct ni_info))) {
+ if (copy_from_user(&ni, uarg, sizeof(ni))) {
return -EFAULT;
}
OpenPOWER on IntegriCloud