Skip to content

Commit

Permalink
Merge pull request torvalds#520 from thehajime/fix-hijack-config
Browse files Browse the repository at this point in the history
lkl: fix json handling
  • Loading branch information
thehajime authored Jun 9, 2023
2 parents 83a905f + 5c26bd7 commit 558acc3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/lkl/lib/hijack/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ static int config_load(void)
perror("config buf malloc");
return -1;
}
memset(buf, 0, len * sizeof(char) + 1);
ret = read(fd, buf, len);
if (ret < 0) {
perror("config file read");
Expand Down

0 comments on commit 558acc3

Please sign in to comment.