Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 322137
b: refs/heads/master
c: 1d2a2cd
h: refs/heads/master
i:
  322135: 8b8c315
v: v3
  • Loading branch information
Nicholas Bellinger committed Aug 17, 2012
1 parent 23b0a7c commit 881fb58
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5b7517f81449067caf3d402e4abc6cd92096fe62
refs/heads/master: 1d2a2cd95ee0137a2353d1b5635739c281f27cd4
9 changes: 8 additions & 1 deletion trunk/drivers/target/target_core_pscsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -673,8 +673,15 @@ static int pscsi_transport_complete(struct se_cmd *cmd, struct scatterlist *sg)
struct scsi_device *sd = pdv->pdv_sd;
int result;
struct pscsi_plugin_task *pt = cmd->priv;
unsigned char *cdb = &pt->pscsi_cdb[0];
unsigned char *cdb;
/*
* Special case for REPORT_LUNs handling where pscsi_plugin_task has
* not been allocated because TCM is handling the emulation directly.
*/
if (!pt)
return 0;

cdb = &pt->pscsi_cdb[0];
result = pt->pscsi_result;
/*
* Hack to make sure that Write-Protect modepage is set if R/O mode is
Expand Down

0 comments on commit 881fb58

Please sign in to comment.