staging: gdm72xx: add userspace data struct
authorWim de With <nauxuron@wimdewith.com>
Fri, 11 Dec 2015 09:25:13 +0000 (10:25 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 27 Dec 2015 01:13:33 +0000 (17:13 -0800)
commitd1052aa5692d08aa4a058507ff5721317d2bef75
tree8739397f4e3132ce6ff9eda4386f2b9626dc5aa8
parent2bc29a1abc5c1b89576f8ae864cce9c07d18fd44
staging: gdm72xx: add userspace data struct

This fixes the sparse warnings about dereferencing a userspace pointer.

Once I updated the sparse annotations, I noticed a bug in
gdm_wimax_ioctl() where we pass a user space pointer to gdm_update_fsm()
which dereferences it. I fixed this.

Signed-off-by: Wim de With <nauxuron@wimdewith.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gdm72xx/gdm_wimax.c
drivers/staging/gdm72xx/wm_ioctl.h