From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sun, 11 Mar 2012 23:57:49 -0500 From: Jonathan Nieder To: Greg KH Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, torvalds@linux-foundation.org, akpm@linux-foundation.org, alan@lxorguk.ukuu.org.uk, Ananth N Mavinakayanahalli , Prashanth K Nageshappa , Masami Hiramatsu , Jason Baron Subject: Re: [ 29/68] kprobes: return proper error code from register_kprobe() Message-ID: <20120312045749.GA15945@burratino> References: <20120309194409.GA2069@kroah.com> <20120309190217.319548473@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120309190217.319548473@linuxfoundation.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: Hi, Greg KH wrote: > 3.0-stable review patch. If anyone has any objections, please let me know. > > ------------------ > > From: Prashanth Nageshappa > > commit f986a499ef6f317d906e6f6f281be966e1237a10 upstream. Looks good for 3.2.y. This is a pointless no-op in 3.0.y, since it doesn't include commit bc81d48d13d8 (kprobes: Return -ENOENT if probe point doesn't exist, 2011-06-29). [...] > This patch fixes it by returning -EINVAL upon failure. [...] > @@ -1396,7 +1398,7 @@ out: > > return ret; > > -fail_with_jump_label: > +cannot_probe: > preempt_enable(); > jump_label_unlock(); > return -EINVAL; Hope that helps, Jonathan