From: Nicholas Bellinger Date: Mon, 14 Mar 2011 11:05:59 +0000 (-0700) Subject: [SCSI] target: Convert backend ->create_virtdevice() call to return ERR_PTR X-Git-Tag: v2.6.39-rc1~52^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=613640e4e1b5358ce880d16f10ecc2550b32b250;p=pandora-kernel.git [SCSI] target: Convert backend ->create_virtdevice() call to return ERR_PTR This patch converts the target_core_store_dev_enable() -> struct se_subsystem_api->create_virtdevice() call to return proper ERR_PTR values back up to configfs logic during backend dependent struct se_device ENABLE exception conditions. Along with the change to target_core_configfs.c, this includes converting IBLOCK, FILEIO, pSCSI, and RAMDISK_* backend subsystem plugins to obtain upper level PTR_ERR return codes (where available), and return via ERR_PTR during a *_create_virtdev() failure. Reported-by: Fubo Chen Signed-off-by: Nicholas A. Bellinger Signed-off-by: James Bottomley --- Reading git-diff-tree failed