Commit e0aa762c authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman
Browse files

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: default avatarAlan Cox <gnomes@lxorguk.ukuu.org.uk>
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent deb0b53b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
};