misc: mic/scif: fix error code in scif_create_remote_lookup()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 9 Oct 2015 06:41:22 +0000 (09:41 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 Oct 2015 04:49:48 +0000 (21:49 -0700)
commite426115e0ad35513d88a3e423b86f839b02f17b5
treec314ec326b069a4465d98758df922f138bdff900
parentff65212cc4698f532c452a14fdb94a3b1d1f283d
misc: mic/scif: fix error code in scif_create_remote_lookup()

We should be returning -ENOMEM here instead of success.

Fixes: ba612aa8b487 ('misc: mic: SCIF memory registration and unregistration')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Sudeep Dutt <sudeep.dutt@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mic/scif/scif_rma.c