Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
X
xcap-capability-linux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
xcap
xcap-capability-linux
Commits
c89db7b8
Commit
c89db7b8
authored
14 years ago
by
Stefan Richter
Browse files
Options
Downloads
Patches
Plain Diff
firewire: nosy: annotate __user pointers and __iomem pointers
Signed-off-by:
Stefan Richter
<
stefanr@s5r6.in-berlin.de
>
parent
424d66ce
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/firewire/nosy.c
+4
-4
4 additions, 4 deletions
drivers/firewire/nosy.c
with
4 additions
and
4 deletions
drivers/firewire/nosy.c
+
4
−
4
View file @
c89db7b8
...
@@ -95,7 +95,7 @@ struct packet_buffer {
...
@@ -95,7 +95,7 @@ struct packet_buffer {
struct
pcilynx
{
struct
pcilynx
{
struct
pci_dev
*
pci_device
;
struct
pci_dev
*
pci_device
;
unsigned
char
*
registers
;
__iomem
char
*
registers
;
struct
pcl
*
rcv_start_pcl
,
*
rcv_pcl
;
struct
pcl
*
rcv_start_pcl
,
*
rcv_pcl
;
u32
*
rcv_buffer
;
u32
*
rcv_buffer
;
...
@@ -163,7 +163,7 @@ packet_buffer_destroy(struct packet_buffer *buffer)
...
@@ -163,7 +163,7 @@ packet_buffer_destroy(struct packet_buffer *buffer)
}
}
static
int
static
int
packet_buffer_get
(
struct
client
*
client
,
void
*
data
,
size_t
user_length
)
packet_buffer_get
(
struct
client
*
client
,
char
__user
*
data
,
size_t
user_length
)
{
{
struct
packet_buffer
*
buffer
=
&
client
->
buffer
;
struct
packet_buffer
*
buffer
=
&
client
->
buffer
;
size_t
length
;
size_t
length
;
...
@@ -362,7 +362,7 @@ nosy_poll(struct file *file, poll_table *pt)
...
@@ -362,7 +362,7 @@ nosy_poll(struct file *file, poll_table *pt)
}
}
static
ssize_t
static
ssize_t
nosy_read
(
struct
file
*
file
,
char
*
buffer
,
size_t
count
,
loff_t
*
offset
)
nosy_read
(
struct
file
*
file
,
char
__user
*
buffer
,
size_t
count
,
loff_t
*
offset
)
{
{
struct
client
*
client
=
file
->
private_data
;
struct
client
*
client
=
file
->
private_data
;
...
@@ -383,7 +383,7 @@ nosy_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
...
@@ -383,7 +383,7 @@ nosy_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
stats
.
lost_packet_count
=
client
->
buffer
.
lost_packet_count
;
stats
.
lost_packet_count
=
client
->
buffer
.
lost_packet_count
;
spin_unlock_irq
(
client_list_lock
);
spin_unlock_irq
(
client_list_lock
);
if
(
copy_to_user
((
void
*
)
arg
,
&
stats
,
sizeof
stats
))
if
(
copy_to_user
((
void
__user
*
)
arg
,
&
stats
,
sizeof
stats
))
return
-
EFAULT
;
return
-
EFAULT
;
else
else
return
0
;
return
0
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment