Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
linux-yocto
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
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
Mirrors
git.yoctoproject.org
linux-yocto
Commits
eea556dc
Commit
eea556dc
authored
4 years ago
by
Bruce Ashfield
Browse files
Options
Downloads
Plain Diff
Merge branch 'v5.2/standard/base' into v5.2/standard/cn96xx
parents
94ac6d8f
e50e96a0
Loading
Loading
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
fs/ext4/super.c
+2
-2
2 additions, 2 deletions
fs/ext4/super.c
kernel/debug/kdb/kdb_main.c
+4
-4
4 additions, 4 deletions
kernel/debug/kdb/kdb_main.c
net/tipc/bearer.c
+1
-4
1 addition, 4 deletions
net/tipc/bearer.c
with
7 additions
and
10 deletions
fs/ext4/super.c
+
2
−
2
View file @
eea556dc
...
...
@@ -365,12 +365,12 @@ static void __save_error_info(struct super_block *sb, const char *func,
return
;
es
->
s_state
|=
cpu_to_le16
(
EXT4_ERROR_FS
);
ext4_update_tstamp
(
es
,
s_last_error_time
);
str
n
cpy
(
es
->
s_last_error_func
,
func
,
sizeof
(
es
->
s_last_error_func
));
str
s
cpy
_pad
(
es
->
s_last_error_func
,
func
,
sizeof
(
es
->
s_last_error_func
));
es
->
s_last_error_line
=
cpu_to_le32
(
line
);
if
(
!
es
->
s_first_error_time
)
{
es
->
s_first_error_time
=
es
->
s_last_error_time
;
es
->
s_first_error_time_hi
=
es
->
s_last_error_time_hi
;
str
n
cpy
(
es
->
s_first_error_func
,
func
,
str
s
cpy
_pad
(
es
->
s_first_error_func
,
func
,
sizeof
(
es
->
s_first_error_func
));
es
->
s_first_error_line
=
cpu_to_le32
(
line
);
es
->
s_first_error_ino
=
es
->
s_last_error_ino
;
...
...
This diff is collapsed.
Click to expand it.
kernel/debug/kdb/kdb_main.c
+
4
−
4
View file @
eea556dc
...
...
@@ -1103,12 +1103,12 @@ static int handle_ctrl_cmd(char *cmd)
case
CTRL_P
:
if
(
cmdptr
!=
cmd_tail
)
cmdptr
=
(
cmdptr
-
1
)
%
KDB_CMD_HISTORY_COUNT
;
str
n
cpy
(
cmd_cur
,
cmd_hist
[
cmdptr
],
CMD_BUFLEN
);
str
s
cpy
(
cmd_cur
,
cmd_hist
[
cmdptr
],
CMD_BUFLEN
);
return
1
;
case
CTRL_N
:
if
(
cmdptr
!=
cmd_head
)
cmdptr
=
(
cmdptr
+
1
)
%
KDB_CMD_HISTORY_COUNT
;
str
n
cpy
(
cmd_cur
,
cmd_hist
[
cmdptr
],
CMD_BUFLEN
);
str
s
cpy
(
cmd_cur
,
cmd_hist
[
cmdptr
],
CMD_BUFLEN
);
return
1
;
}
return
0
;
...
...
@@ -1315,7 +1315,7 @@ static int kdb_local(kdb_reason_t reason, int error, struct pt_regs *regs,
if
(
*
cmdbuf
!=
'\n'
)
{
if
(
*
cmdbuf
<
32
)
{
if
(
cmdptr
==
cmd_head
)
{
str
n
cpy
(
cmd_hist
[
cmd_head
],
cmd_cur
,
str
s
cpy
(
cmd_hist
[
cmd_head
],
cmd_cur
,
CMD_BUFLEN
);
*
(
cmd_hist
[
cmd_head
]
+
strlen
(
cmd_hist
[
cmd_head
])
-
1
)
=
'\0'
;
...
...
@@ -1325,7 +1325,7 @@ static int kdb_local(kdb_reason_t reason, int error, struct pt_regs *regs,
cmdbuf
=
cmd_cur
;
goto
do_full_getstr
;
}
else
{
str
n
cpy
(
cmd_hist
[
cmd_head
],
cmd_cur
,
str
s
cpy
(
cmd_hist
[
cmd_head
],
cmd_cur
,
CMD_BUFLEN
);
}
...
...
This diff is collapsed.
Click to expand it.
net/tipc/bearer.c
+
1
−
4
View file @
eea556dc
...
...
@@ -138,10 +138,7 @@ static int bearer_name_validate(const char *name,
u32
if_len
;
/* copy bearer name & ensure length is OK */
name_copy
[
TIPC_MAX_BEARER_NAME
-
1
]
=
0
;
/* need above in case non-Posix strncpy() doesn't pad with nulls */
strncpy
(
name_copy
,
name
,
TIPC_MAX_BEARER_NAME
);
if
(
name_copy
[
TIPC_MAX_BEARER_NAME
-
1
]
!=
0
)
if
(
strscpy
(
name_copy
,
name
,
TIPC_MAX_BEARER_NAME
)
<
0
)
return
0
;
/* ensure all component parts of bearer name are present */
...
...
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