Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CTU CAN FD IP Core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
16
Issues
16
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
canbus
CTU CAN FD IP Core
Commits
e07f794c
Commit
e07f794c
authored
May 11, 2018
by
Martin Jeřábek
Committed by
Martin Jeřábek
Jun 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
driver: free echo skb on TX error
parent
03c6521a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
driver/ctu_can_fd.c
driver/ctu_can_fd.c
+3
-1
No files found.
driver/ctu_can_fd.c
View file @
e07f794c
...
...
@@ -573,15 +573,17 @@ static void ctucan_tx_interrupt(struct net_device *ndev)
switch
(
status
)
{
case
TXT_TOK
:
netdev_info
(
ndev
,
"TXT_OK"
);
can_get_echo_skb
(
ndev
,
priv
->
txb_tail
&
priv
->
txb_mask
);
can_get_echo_skb
(
ndev
,
txb_idx
);
stats
->
tx_packets
++
;
break
;
case
TXT_ERR
:
netdev_warn
(
ndev
,
"TXB in Error state"
);
can_free_echo_skb
(
ndev
,
txb_idx
);
// TODO: send some error frame - but what should it contain?
break
;
case
TXT_ABT
:
netdev_warn
(
ndev
,
"TXB in Aborted state"
);
can_free_echo_skb
(
ndev
,
txb_idx
);
// TODO: send some error frame - but what should it contain?
break
;
default:
...
...
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