lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <tip-0d109c8f70eab8b9f693bd5caea23012394e4876@git.kernel.org> Date: Sat, 21 Nov 2009 13:34:57 GMT From: tip-bot for Li Zefan <lizf@...fujitsu.com> To: linux-tip-commits@...r.kernel.org Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com, stern@...land.harvard.edu, lizf@...fujitsu.com, fweisbec@...il.com, rostedt@...dmis.org, tglx@...utronix.de, mingo@...e.hu, prasad@...ux.vnet.ibm.com Subject: [tip:perf/core] ksym_tracer: Report error when failed to re-register hbp Commit-ID: 0d109c8f70eab8b9f693bd5caea23012394e4876 Gitweb: http://git.kernel.org/tip/0d109c8f70eab8b9f693bd5caea23012394e4876 Author: Li Zefan <lizf@...fujitsu.com> AuthorDate: Tue, 7 Jul 2009 13:54:28 +0800 Committer: Ingo Molnar <mingo@...e.hu> CommitDate: Fri, 10 Jul 2009 11:59:43 +0200 ksym_tracer: Report error when failed to re-register hbp When access type is changed, the hw break point will be unregistered and then be registered again with new access type. But the registration may fail, in this case, -errno should be returned. Signed-off-by: Li Zefan <lizf@...fujitsu.com> Acked-by: Frederic Weisbecker <fweisbec@...il.com> Cc: "K.Prasad" <prasad@...ux.vnet.ibm.com> Cc: Alan Stern <stern@...land.harvard.edu> Cc: Steven Rostedt <rostedt@...dmis.org> LKML-Reference: <4A52E314.7070004@...fujitsu.com> Signed-off-by: Ingo Molnar <mingo@...e.hu> --- kernel/trace/trace_ksym.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/trace/trace_ksym.c b/kernel/trace/trace_ksym.c index 8cbed5a..891e3b8 100644 --- a/kernel/trace/trace_ksym.c +++ b/kernel/trace/trace_ksym.c @@ -302,13 +302,13 @@ static ssize_t ksym_trace_filter_write(struct file *file, ret = count; goto unlock_ret_path; } - } + } else + ret = count; ksym_filter_entry_count--; hlist_del_rcu(&(entry->ksym_hlist)); synchronize_rcu(); kfree(entry->ksym_hbp); kfree(entry); - ret = count; goto err_ret; } else { /* Check for malformed request: (4) */ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists