target/iscsi: Fix op=disable + error handling cases in np_store_iser
authorAndy Grover <agrover@redhat.com>
Wed, 29 May 2013 19:05:59 +0000 (12:05 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 20 Jun 2013 23:47:32 +0000 (16:47 -0700)
commit58bd0c69ffa27ea2309959836811e88004d73720
tree5828e17a3a7708e55b511e88affeea0f3172a9ef
parentb5aff3d2747bea08b386edd070941a45611ffe51
target/iscsi: Fix op=disable + error handling cases in np_store_iser

Writing 0 when iser was not previously enabled, so succeed but do
nothing so that user-space code doesn't need a try: catch block
when ib_isert logic is not available.

Also, return actual error from add_network_portal using PTR_ERR
during op=enable failure.

Signed-off-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target_configfs.c