[SCSI] target: fixed missing lock drop in error path
authorFubo Chen <fubo.chen@gmail.com>
Wed, 9 Feb 2011 23:34:48 +0000 (15:34 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Sat, 12 Feb 2011 17:38:17 +0000 (11:38 -0600)
commit85dc98d93f3dc41cce54118a7abab9e6aa616dd2
tree3d0f9db5817dca8a16e60b10ef9e69b81d69719c
parent29fe609d124d6d7478d1241bb82dc2e00509f516
[SCSI] target: fixed missing lock drop in error path

The struct se_node_acl->device_list_lock needs to be released if either
sanity check for struct se_dev_entry->se_lun_acl or deve->se_lun fails.

Signed-off-by: Fubo Chen <fubo.chen@gmail.com>
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/target/target_core_device.c