Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xenomai
xenomai
Commits
b48bc137
Commit
b48bc137
authored
Jun 16, 2017
by
Philippe Gerum
Browse files
net/cap: fix panic in rtcap_signal_handler()
parent
f083112f
Changes
1
Hide whitespace changes
Inline
Side-by-side
kernel/drivers/net/addons/cap.c
View file @
b48bc137
...
...
@@ -195,11 +195,13 @@ static void rtcap_signal_handler(rtdm_nrtsig_t *nrtsig, void *arg)
ifindex
=
rtskb
->
rtdev
->
ifindex
;
active
=
tap_device
[
ifindex
].
present
;
if
((
tap_device
[
ifindex
].
tap_dev
->
flags
&
IFF_UP
)
==
0
)
active
&=
~
TAP_DEV
;
if
(
active
&
RTMAC_TAP_DEV
&&
!
(
tap_device
[
ifindex
].
rtmac_tap_dev
->
flags
&
IFF_UP
))
active
&=
~
RTMAC_TAP_DEV
;
if
(
active
)
{
if
((
tap_device
[
ifindex
].
tap_dev
->
flags
&
IFF_UP
)
==
0
)
active
&=
~
TAP_DEV
;
if
(
active
&
RTMAC_TAP_DEV
&&
!
(
tap_device
[
ifindex
].
rtmac_tap_dev
->
flags
&
IFF_UP
))
active
&=
~
RTMAC_TAP_DEV
;
}
if
(
active
==
0
)
{
tap_device
[
ifindex
].
tap_dev_stats
.
rx_dropped
++
;
...
...
Write
Preview
Supports
Markdown
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