Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 367413
b: refs/heads/master
c: 37719c2
h: refs/heads/master
i:
  367411: 14cfd9a
v: v3
  • Loading branch information
Adheer Chandravanshi authored and James Bottomley committed Apr 11, 2013
1 parent d3b6598 commit 5bbe0a7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 039acc1e70ba354a430023c3c997f680d7c098b9
refs/heads/master: 37719c2a54caff1f3d7861a17e06327f74002bb2
8 changes: 8 additions & 0 deletions trunk/drivers/scsi/qla4xxx/ql4_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -5916,6 +5916,14 @@ static int qla4xxx_sysfs_ddb_logout_sid(struct iscsi_cls_session *cls_sess)
goto exit_ddb_logout;
}

if (test_bit(DF_BOOT_TGT, &ddb_entry->flags)) {
ql4_printk(KERN_ERR, ha,
"%s: Logout from boot target entry is not permitted.\n",
__func__);
ret = -EPERM;
goto exit_ddb_logout;
}

options = LOGOUT_OPTION_CLOSE_SESSION;
if (qla4xxx_session_logout_ddb(ha, ddb_entry, options) == QLA_ERROR) {
ql4_printk(KERN_ERR, ha, "%s: Logout failed\n", __func__);
Expand Down

0 comments on commit 5bbe0a7

Please sign in to comment.