Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23573
b: refs/heads/master
c: f1a136e
h: refs/heads/master
i:
  23571: cd412cc
v: v3
  • Loading branch information
Jesper Juhl authored and Linus Torvalds committed Mar 25, 2006
1 parent 287c2b8 commit 7147b44
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2ab13460852e65c2ec0e77000baba5e859a6a2cf
refs/heads/master: f1a136e0d098a4478236a1c24f9a57db5abf0755
12 changes: 11 additions & 1 deletion trunk/scripts/kallsyms.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ static int read_symbol(FILE *in, struct sym_entry *s)
* compressed together */
s->len = strlen(str) + 1;
s->sym = malloc(s->len + 1);
if (!s->sym) {
fprintf(stderr, "kallsyms failure: "
"unable to allocate required amount of memory\n");
exit(EXIT_FAILURE);
}
strcpy((char *)s->sym + 1, str);
s->sym[0] = stype;

Expand Down Expand Up @@ -272,7 +277,12 @@ static void write_src(void)

/* table of offset markers, that give the offset in the compressed stream
* every 256 symbols */
markers = (unsigned int *) malloc(sizeof(unsigned int) * ((table_cnt + 255) / 256));
markers = malloc(sizeof(unsigned int) * ((table_cnt + 255) / 256));
if (!markers) {
fprintf(stderr, "kallsyms failure: "
"unable to allocate required memory\n");
exit(EXIT_FAILURE);
}

output_label("kallsyms_names");
off = 0;
Expand Down

0 comments on commit 7147b44

Please sign in to comment.