target/tcm_fc: return detailed error in ft_sess_create()
authorHannes Reinecke <hare@suse.de>
Mon, 22 Aug 2016 08:54:09 +0000 (10:54 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 21 Oct 2016 08:19:42 +0000 (01:19 -0700)
commit91b385b4909e040450389b11961a8ba8f8e9a35e
treeef7c0297470b03dffb8f9490f86ea963c28c1604
parentb04bf5833e8a0d6ae4e3f7b35b30c4ab6ff7ea1b
target/tcm_fc: return detailed error in ft_sess_create()

Not every failure is due to out-of-memory; the ACLs might not be
set, too. So return a detailed error code in ft_sess_create()
instead of just a NULL pointer.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/tcm_fc/tfc_sess.c