BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mangoh-drivers
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
mangoh-drivers
Commits
207b2906
Commit
207b2906
authored
Jan 11, 2018
by
David Clark
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug checking if UART closed in write function
parent
b572f32d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
uart.c
linux_kernel_modules/mt7697serial/uart.c
+3
-2
No files found.
linux_kernel_modules/mt7697serial/uart.c
View file @
207b2906
...
...
@@ -331,8 +331,9 @@ size_t mt7697_uart_write(void *arg, const u32 *buf, size_t len)
oldfs
=
get_fs
();
set_fs
(
get_ds
());
if
(
!
uart_info
->
fd_hndl
)
{
dev_err
(
uart_info
->
dev
,
"%s(): device closed
\n
"
,
__func__
);
if
(
uart_info
->
fd_hndl
==
MT7697_UART_INVALID_FD
||
IS_ERR
(
uart_info
->
fd_hndl
))
{
dev_warn
(
uart_info
->
dev
,
"%s(): device closed
\n
"
,
__func__
);
goto
cleanup
;
}
...
...
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