Skip to content

Commit af5e70a

Browse files
committed
autopatch: linux: update find_bytecode.sh
1 parent 5f4e406 commit af5e70a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/autopatch/find_bytecode.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set -euo pipefail
77
exit 2
88
}
99

10-
MATCH_STR=feff85c04189c4
10+
MATCH_STR=feff4189c685c0
1111
driver_version=$1
1212
driver_url=$2
1313
driver_file=NVIDIA-Linux-x86_64-$driver_version.run
@@ -34,7 +34,7 @@ search_bytecode() {
3434

3535
get_patch_str() {
3636
bytecode=$1
37-
fixed=${bytecode:0:10}29${bytecode:(-8):8}
37+
fixed=${bytecode:0:10}29c0${bytecode:(-10):6}
3838
bytecode=$(echo "$bytecode" | sed 's/../\\x&/g')
3939
fixed=$(echo "$fixed" | sed 's/../\\x&/g')
4040
echo "[\"$driver_version\"]='s/$bytecode/$fixed/g'"

0 commit comments

Comments
 (0)