Staging: gdm72xx: underflow bug in gdm_wimax_ioctl_get_data()
Subsystems (2)
PATCH 5/6 Staging: gdm72xx: underflow bug in gdm_wimax_ioctl_get_data()
"size" here should be unsigned, otherwise we might end up trying to copy negative bytes in gdm_wimax_ioctl_get_data() resulting in an information leak.
Reported-by Alan Cox <[email protected]>
Signed-off-by Dan Carpenter <[email protected]>
drivers/staging/gdm72xx/wm_ioctl.h +2 -2
@@ -74,12 +74,12 @@ struct fsm_s { };struct data_s { -int size; +unsigned int size;void *buf; };struct udata_s { -int size; +unsigned int size;void __user *buf; };