uprobes: Don't return success if alloc_uprobe() fails
authorOleg Nesterov <oleg@redhat.com>
Sun, 30 Sep 2012 16:21:09 +0000 (18:21 +0200)
committerOleg Nesterov <oleg@redhat.com>
Sun, 7 Oct 2012 19:19:41 +0000 (21:19 +0200)
commita5f658b71bc622b731961ea3addcf146ed3c599f
tree52ebe6fb29ef955cee71ded01154d89d77577410
parentb64b9c937a533f0bfbfc9f6ac93d3c3e2f97ab02
uprobes: Don't return success if alloc_uprobe() fails

If alloc_uprobe() fails uprobe_register() should return ENOMEM, not 0.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
kernel/events/uprobes.c