git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next
[sfrench/cifs-2.6.git]
/
tools
/
bpf
/
bpftool
/
common.c
diff --git
a/tools/bpf/bpftool/common.c
b/tools/bpf/bpftool/common.c
index c5e57cce887a5c641a579522eca9f1ee7fa16ede..d42d930a3ec4d4633289d617fd3e25926ed78305 100644
(file)
--- a/
tools/bpf/bpftool/common.c
+++ b/
tools/bpf/bpftool/common.c
@@
-228,6
+228,11
@@
int mount_bpffs_for_pin(const char *name)
int err = 0;
file = malloc(strlen(name) + 1);
+ if (!file) {
+ p_err("mem alloc failed");
+ return -1;
+ }
+
strcpy(file, name);
dir = dirname(file);