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
3201188e
Commit
3201188e
authored
Aug 12, 2003
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: Add missing rcu_read_lock to bpqether.
parent
c3379065
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
drivers/net/hamradio/bpqether.c
drivers/net/hamradio/bpqether.c
+3
-1
No files found.
drivers/net/hamradio/bpqether.c
View file @
3201188e
...
@@ -141,7 +141,6 @@ static inline struct net_device *bpq_get_ether_dev(struct net_device *dev)
...
@@ -141,7 +141,6 @@ static inline struct net_device *bpq_get_ether_dev(struct net_device *dev)
/*
/*
* Get the BPQ device for the ethernet device
* Get the BPQ device for the ethernet device
* need to hold bqp_lock at least for read
*/
*/
static
inline
struct
net_device
*
bpq_get_ax25_dev
(
struct
net_device
*
dev
)
static
inline
struct
net_device
*
bpq_get_ax25_dev
(
struct
net_device
*
dev
)
{
{
...
@@ -564,6 +563,8 @@ static int bpq_device_event(struct notifier_block *this,unsigned long event, voi
...
@@ -564,6 +563,8 @@ static int bpq_device_event(struct notifier_block *this,unsigned long event, voi
if
(
!
dev_is_ethdev
(
dev
))
if
(
!
dev_is_ethdev
(
dev
))
return
NOTIFY_DONE
;
return
NOTIFY_DONE
;
rcu_read_lock
();
switch
(
event
)
{
switch
(
event
)
{
case
NETDEV_UP
:
/* new ethernet device -> new BPQ interface */
case
NETDEV_UP
:
/* new ethernet device -> new BPQ interface */
if
(
bpq_get_ax25_dev
(
dev
)
==
NULL
)
if
(
bpq_get_ax25_dev
(
dev
)
==
NULL
)
...
@@ -582,6 +583,7 @@ static int bpq_device_event(struct notifier_block *this,unsigned long event, voi
...
@@ -582,6 +583,7 @@ static int bpq_device_event(struct notifier_block *this,unsigned long event, voi
default:
default:
break
;
break
;
}
}
rcu_read_unlock
();
return
NOTIFY_DONE
;
return
NOTIFY_DONE
;
}
}
...
...
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