Repository navigation
Commit 4e5dcbe
tracing: Don't inc err_log entry count if entry allocation fails
commit 67ab5eb upstream.
tr->n_err_log_entries should only be increased if entry allocation
succeeds.
Doing it when it fails won't cause any problems other than wasting an
entry, but should be fixed anyway.
Link: https://lkml.kernel.org/r/cad1ab28f75968db0f466925e7cba5970cec6c29.1643319703.git.zanussi@kernel.org
Cc: stable@vger.kernel.org
Fixes: 2f754e7 ("tracing: Don't inc err_log entry count if entry allocation fails")
Signed-off-by: Tom Zanussi <zanussi@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent e33fa4a commit 4e5dcbe
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7749 | 7749 | | |
7750 | 7750 | | |
7751 | 7751 | | |
7752 | | - | |
| 7752 | + | |
| 7753 | + | |
7753 | 7754 | | |
7754 | 7755 | | |
7755 | 7756 | | |
| |||
0 commit comments