mirror of https://gitee.com/openkylin/linux.git
[SCSI] tgt: stop zero'ing scsi_cmnd
The scsi midlayer allocates scsi_cmnd->sense_buffer dynamically so we can't initialize scsi_cmnd (the midlyaer does for us). Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
This commit is contained in:
parent
b560665ce5
commit
36802e9989
|
@ -103,7 +103,6 @@ struct scsi_cmnd *scsi_host_get_command(struct Scsi_Host *shost,
|
|||
if (!cmd)
|
||||
goto release_rq;
|
||||
|
||||
memset(cmd, 0, sizeof(*cmd));
|
||||
cmd->sc_data_direction = data_dir;
|
||||
cmd->jiffies_at_alloc = jiffies;
|
||||
cmd->request = rq;
|
||||
|
|
Loading…
Reference in New Issue