Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
4eef80b0
Commit
4eef80b0
authored
Jun 16, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: fixed up some __user warnings reported by sparse in drivers/usb/net/*
parent
5bcd0bb6
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
11 deletions
+11
-11
drivers/usb/net/catc.c
drivers/usb/net/catc.c
+2
-2
drivers/usb/net/kaweth.c
drivers/usb/net/kaweth.c
+2
-2
drivers/usb/net/pegasus.c
drivers/usb/net/pegasus.c
+3
-3
drivers/usb/net/rtl8150.c
drivers/usb/net/rtl8150.c
+2
-2
drivers/usb/net/usbnet.c
drivers/usb/net/usbnet.c
+2
-2
No files found.
drivers/usb/net/catc.c
View file @
4eef80b0
...
@@ -667,7 +667,7 @@ static void catc_set_multicast_list(struct net_device *netdev)
...
@@ -667,7 +667,7 @@ static void catc_set_multicast_list(struct net_device *netdev)
/*
/*
* ioctl's
* ioctl's
*/
*/
static
int
netdev_ethtool_ioctl
(
struct
net_device
*
dev
,
void
*
useraddr
)
static
int
netdev_ethtool_ioctl
(
struct
net_device
*
dev
,
void
__user
*
useraddr
)
{
{
struct
catc
*
catc
=
dev
->
priv
;
struct
catc
*
catc
=
dev
->
priv
;
u32
cmd
;
u32
cmd
;
...
@@ -726,7 +726,7 @@ static int catc_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
...
@@ -726,7 +726,7 @@ static int catc_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
{
{
switch
(
cmd
)
{
switch
(
cmd
)
{
case
SIOCETHTOOL
:
case
SIOCETHTOOL
:
return
netdev_ethtool_ioctl
(
dev
,
(
void
*
)
rq
->
ifr_data
);
return
netdev_ethtool_ioctl
(
dev
,
(
void
__user
*
)
rq
->
ifr_data
);
default:
default:
return
-
EOPNOTSUPP
;
return
-
EOPNOTSUPP
;
}
}
...
...
drivers/usb/net/kaweth.c
View file @
4eef80b0
...
@@ -662,7 +662,7 @@ static int kaweth_close(struct net_device *net)
...
@@ -662,7 +662,7 @@ static int kaweth_close(struct net_device *net)
return
0
;
return
0
;
}
}
static
int
netdev_ethtool_ioctl
(
struct
net_device
*
dev
,
void
*
useraddr
)
static
int
netdev_ethtool_ioctl
(
struct
net_device
*
dev
,
void
__user
*
useraddr
)
{
{
u32
ethcmd
;
u32
ethcmd
;
...
@@ -689,7 +689,7 @@ static int kaweth_ioctl(struct net_device *net, struct ifreq *rq, int cmd)
...
@@ -689,7 +689,7 @@ static int kaweth_ioctl(struct net_device *net, struct ifreq *rq, int cmd)
{
{
switch
(
cmd
)
{
switch
(
cmd
)
{
case
SIOCETHTOOL
:
case
SIOCETHTOOL
:
return
netdev_ethtool_ioctl
(
net
,
(
void
*
)
rq
->
ifr_data
);
return
netdev_ethtool_ioctl
(
net
,
(
void
__user
*
)
rq
->
ifr_data
);
}
}
return
-
EOPNOTSUPP
;
return
-
EOPNOTSUPP
;
}
}
...
...
drivers/usb/net/pegasus.c
View file @
4eef80b0
...
@@ -945,7 +945,7 @@ static int pegasus_close(struct net_device *net)
...
@@ -945,7 +945,7 @@ static int pegasus_close(struct net_device *net)
return
0
;
return
0
;
}
}
#ifdef CONFIG_MII
#ifdef CONFIG_MII
static
int
pegasus_ethtool_ioctl
(
struct
net_device
*
dev
,
void
*
useraddr
)
static
int
pegasus_ethtool_ioctl
(
struct
net_device
*
dev
,
void
__user
*
useraddr
)
{
{
u32
ethcmd
;
u32
ethcmd
;
...
@@ -1024,7 +1024,7 @@ static int pegasus_ethtool_ioctl(struct net_device *dev, void *useraddr)
...
@@ -1024,7 +1024,7 @@ static int pegasus_ethtool_ioctl(struct net_device *dev, void *useraddr)
}
}
#else
#else
static
int
pegasus_ethtool_ioctl
(
struct
net_device
*
net
,
void
*
uaddr
)
static
int
pegasus_ethtool_ioctl
(
struct
net_device
*
net
,
void
__user
*
uaddr
)
{
{
pegasus_t
*
pegasus
;
pegasus_t
*
pegasus
;
int
cmd
;
int
cmd
;
...
@@ -1113,7 +1113,7 @@ static int pegasus_ioctl(struct net_device *net, struct ifreq *rq, int cmd)
...
@@ -1113,7 +1113,7 @@ static int pegasus_ioctl(struct net_device *net, struct ifreq *rq, int cmd)
switch
(
cmd
)
{
switch
(
cmd
)
{
case
SIOCETHTOOL
:
case
SIOCETHTOOL
:
res
=
pegasus_ethtool_ioctl
(
net
,
rq
->
ifr_data
);
res
=
pegasus_ethtool_ioctl
(
net
,
(
void
__user
*
)
rq
->
ifr_data
);
break
;
break
;
case
SIOCDEVPRIVATE
:
case
SIOCDEVPRIVATE
:
data
[
0
]
=
pegasus
->
phy
;
data
[
0
]
=
pegasus
->
phy
;
...
...
drivers/usb/net/rtl8150.c
View file @
4eef80b0
...
@@ -673,7 +673,7 @@ static int rtl8150_close(struct net_device *netdev)
...
@@ -673,7 +673,7 @@ static int rtl8150_close(struct net_device *netdev)
return
res
;
return
res
;
}
}
static
int
rtl8150_ethtool_ioctl
(
struct
net_device
*
netdev
,
void
*
uaddr
)
static
int
rtl8150_ethtool_ioctl
(
struct
net_device
*
netdev
,
void
__user
*
uaddr
)
{
{
rtl8150_t
*
dev
;
rtl8150_t
*
dev
;
int
cmd
;
int
cmd
;
...
@@ -758,7 +758,7 @@ static int rtl8150_ioctl(struct net_device *netdev, struct ifreq *rq, int cmd)
...
@@ -758,7 +758,7 @@ static int rtl8150_ioctl(struct net_device *netdev, struct ifreq *rq, int cmd)
switch
(
cmd
)
{
switch
(
cmd
)
{
case
SIOCETHTOOL
:
case
SIOCETHTOOL
:
res
=
rtl8150_ethtool_ioctl
(
netdev
,
rq
->
ifr_data
);
res
=
rtl8150_ethtool_ioctl
(
netdev
,
(
void
__user
*
)
rq
->
ifr_data
);
break
;
break
;
case
SIOCDEVPRIVATE
:
case
SIOCDEVPRIVATE
:
data
[
0
]
=
dev
->
phy
;
data
[
0
]
=
dev
->
phy
;
...
...
drivers/usb/net/usbnet.c
View file @
4eef80b0
...
@@ -2097,7 +2097,7 @@ static int usbnet_open (struct net_device *net)
...
@@ -2097,7 +2097,7 @@ static int usbnet_open (struct net_device *net)
/*-------------------------------------------------------------------------*/
/*-------------------------------------------------------------------------*/
static
inline
int
static
inline
int
usbnet_ethtool_ioctl
(
struct
net_device
*
net
,
void
*
useraddr
)
usbnet_ethtool_ioctl
(
struct
net_device
*
net
,
void
__user
*
useraddr
)
{
{
struct
usbnet
*
dev
=
(
struct
usbnet
*
)
net
->
priv
;
struct
usbnet
*
dev
=
(
struct
usbnet
*
)
net
->
priv
;
u32
cmd
;
u32
cmd
;
...
@@ -2161,7 +2161,7 @@ static int usbnet_ioctl (struct net_device *net, struct ifreq *rq, int cmd)
...
@@ -2161,7 +2161,7 @@ static int usbnet_ioctl (struct net_device *net, struct ifreq *rq, int cmd)
{
{
switch
(
cmd
)
{
switch
(
cmd
)
{
case
SIOCETHTOOL
:
case
SIOCETHTOOL
:
return
usbnet_ethtool_ioctl
(
net
,
(
void
*
)
rq
->
ifr_data
);
return
usbnet_ethtool_ioctl
(
net
,
(
void
__user
*
)
rq
->
ifr_data
);
default:
default:
return
-
EOPNOTSUPP
;
return
-
EOPNOTSUPP
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment