diff options
| author | Huang Shijie <[email protected]> | 2016-08-03 20:46:12 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2016-08-04 12:50:07 +0000 |
| commit | 57c24b2140437644f33eecdcc9c546bead0b5fbd (patch) | |
| tree | 9fc61cc855332b3407292383422a2b8f7fefd167 /lib/dynamic_debug.c | |
| parent | samples/kretprobe: convert the printk to pr_info/pr_err (diff) | |
| download | kernel-57c24b2140437644f33eecdcc9c546bead0b5fbd.tar.gz kernel-57c24b2140437644f33eecdcc9c546bead0b5fbd.zip | |
samples/kretprobe: fix the wrong type
The regs_return_value() returns "unsigned long" or "long" value. But the
retval is int type now, it may cause overflow, the log may becomes:
[ 2911.078869] do_brk returned -2003877888 and took 4620 ns to execute
This patch converts the retval to "unsigned long" type, and fixes the
overflow issue.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Huang Shijie <[email protected]>
Cc: Petr Mladek <[email protected]>
Cc: Steve Capper <[email protected]>
Cc: Ananth N Mavinakayanahalli <[email protected]>
Cc: Anil S Keshavamurthy <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions
