Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346405
b: refs/heads/master
c: b2e902f
h: refs/heads/master
i:
  346403: dd3c54a
v: v3
  • Loading branch information
Andy Shevchenko authored and Linus Torvalds committed Dec 18, 2012
1 parent d706b38 commit 8225f6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: f9a00e8738c209d95493cf97d3a82ab2655892e5
refs/heads/master: b2e902f024fa6f6f27b335c478d81bab0cb2c768
8 changes: 4 additions & 4 deletions trunk/kernel/trace/trace_uprobe.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <linux/uaccess.h>
#include <linux/uprobes.h>
#include <linux/namei.h>
#include <linux/string.h>

#include "trace_probe.h"

Expand Down Expand Up @@ -263,16 +264,15 @@ static int create_trace_uprobe(int argc, char **argv)

/* setup a probe */
if (!event) {
char *tail = strrchr(filename, '/');
char *tail;
char *ptr;

ptr = kstrdup((tail ? tail + 1 : filename), GFP_KERNEL);
if (!ptr) {
tail = kstrdup(kbasename(filename), GFP_KERNEL);
if (!tail) {
ret = -ENOMEM;
goto fail_address_parse;
}

tail = ptr;
ptr = strpbrk(tail, ".-_");
if (ptr)
*ptr = '\0';
Expand Down

0 comments on commit 8225f6b

Please sign in to comment.