aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dynamic_debug.c
diff options
context:
space:
mode:
authorHuang Shijie <[email protected]>2016-08-03 20:46:12 +0000
committerLinus Torvalds <[email protected]>2016-08-04 12:50:07 +0000
commit57c24b2140437644f33eecdcc9c546bead0b5fbd (patch)
tree9fc61cc855332b3407292383422a2b8f7fefd167 /lib/dynamic_debug.c
parentsamples/kretprobe: convert the printk to pr_info/pr_err (diff)
downloadkernel-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