path: root/scripts/
diff options
authorNicolas Boichat <>2019-07-11 20:52:27 -0700
committerLinus Torvalds <>2019-07-12 11:05:41 -0700
commit31013836a71e07751a6827f9d2ad41ef502ddaff (patch)
treead720224ae920b6347465f1611978409dc766fdc /scripts/
parenta760f8a67cb38d19fd52f2a28c65c967e469367e (diff)
scripts/decode_stacktrace: match basepath using shell prefix operator, not regex
The basepath may contain special characters, which would confuse the regex matcher. ${var#prefix} does the right thing. Link: Fixes: 67a28de47faa8358 ("scripts/decode_stacktrace: only strip base path when a prefix of the path") Signed-off-by: Nicolas Boichat <> Reviewed-by: Stephen Boyd <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'scripts/')
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/ b/scripts/
index a7a36209a193..6c2c05a75b54 100755
--- a/scripts/
+++ b/scripts/
@@ -85,7 +85,7 @@ parse_symbol() {
# Strip out the base of the path
- code=${code//^$basepath/""}
+ code=${code#$basepath/}
# In the case of inlines, move everything to same line
code=${code//$'\n'/' '}