diff options
author | Brian Norris <computersforpeace@gmail.com> | 2017-06-01 13:53:55 -0400 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2017-06-01 13:53:55 -0400 |
commit | 05e97a9eda72d58dba293857df6aac62584ef99a (patch) | |
tree | e86e692f26d4879ff2210c54722e2b7780210249 /arch/sparc/kernel/ftrace.c | |
parent | 2ea659a9ef488125eb46da6eb571de5eae5c43f6 (diff) | |
parent | d4ed3b9015b5eebc90d629579d9e7944607cbae5 (diff) |
Merge tag 'nand/fixes-for-4.12-rc3' of git://git.infradead.org/linux-mtd into MTD
From Boris:
"""
This pull request contains several fixes to the core and the tango
driver.
tango fixes:
* Add missing MODULE_DEVICE_TABLE() in tango_nand.c
* Update the number of corrected bitflips
core fixes:
* Fix a long standing memory leak in nand_scan_tail()
* Fix several bugs introduced by the per-vendor init/detection
infrastructure (introduced in 4.12)
* Add a static specifier to nand_ooblayout_lp_hamming_ops definition
"""
Diffstat (limited to 'arch/sparc/kernel/ftrace.c')
-rw-r--r-- | arch/sparc/kernel/ftrace.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/arch/sparc/kernel/ftrace.c b/arch/sparc/kernel/ftrace.c index 6bcff698069b..cec54dc4ab81 100644 --- a/arch/sparc/kernel/ftrace.c +++ b/arch/sparc/kernel/ftrace.c | |||
@@ -130,17 +130,16 @@ unsigned long prepare_ftrace_return(unsigned long parent, | |||
130 | if (unlikely(atomic_read(¤t->tracing_graph_pause))) | 130 | if (unlikely(atomic_read(¤t->tracing_graph_pause))) |
131 | return parent + 8UL; | 131 | return parent + 8UL; |
132 | 132 | ||
133 | if (ftrace_push_return_trace(parent, self_addr, &trace.depth, | ||
134 | frame_pointer, NULL) == -EBUSY) | ||
135 | return parent + 8UL; | ||
136 | |||
137 | trace.func = self_addr; | 133 | trace.func = self_addr; |
134 | trace.depth = current->curr_ret_stack + 1; | ||
138 | 135 | ||
139 | /* Only trace if the calling function expects to */ | 136 | /* Only trace if the calling function expects to */ |
140 | if (!ftrace_graph_entry(&trace)) { | 137 | if (!ftrace_graph_entry(&trace)) |
141 | current->curr_ret_stack--; | 138 | return parent + 8UL; |
139 | |||
140 | if (ftrace_push_return_trace(parent, self_addr, &trace.depth, | ||
141 | frame_pointer, NULL) == -EBUSY) | ||
142 | return parent + 8UL; | 142 | return parent + 8UL; |
143 | } | ||
144 | 143 | ||
145 | return return_hooker; | 144 | return return_hooker; |
146 | } | 145 | } |