From: Ananth N Mavinakayanahalli Date: Fri, 20 Jan 2012 22:34:04 +0000 (-0800) Subject: kprobes: initialize before using a hlist X-Git-Tag: v3.3-rc2~46^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d496aab567e7e52b3e974c9192a5de6e77dce32c;p=pandora-kernel.git kprobes: initialize before using a hlist Commit ef53d9c5e ("kprobes: improve kretprobe scalability with hashed locking") introduced a bug where we can potentially leak kretprobe_instances since we initialize a hlist head after having used it. Initialize the hlist head before using it. Reported by: Jim Keniston Acked-by: Jim Keniston Signed-off-by: Ananth N Mavinakayanahalli Acked-by: Masami Hiramatsu Cc: Srinivasa D S Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed