Commit bdc629c9 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] timers: scsi

The patches which I needed to avoid the warnings with my build.
parent bc3c081b
...@@ -603,6 +603,7 @@ inline void __scsi_release_command(Scsi_Cmnd * SCpnt) ...@@ -603,6 +603,7 @@ inline void __scsi_release_command(Scsi_Cmnd * SCpnt)
GFP_DMA : 0)); GFP_DMA : 0));
if(newSCpnt) { if(newSCpnt) {
memset(newSCpnt, 0, sizeof(Scsi_Cmnd)); memset(newSCpnt, 0, sizeof(Scsi_Cmnd));
init_timer(&newSCpnt->eh_timeout);
newSCpnt->host = SDpnt->host; newSCpnt->host = SDpnt->host;
newSCpnt->device = SDpnt; newSCpnt->device = SDpnt;
newSCpnt->target = SDpnt->id; newSCpnt->target = SDpnt->id;
...@@ -1551,6 +1552,7 @@ void scsi_build_commandblocks(Scsi_Device * SDpnt) ...@@ -1551,6 +1552,7 @@ void scsi_build_commandblocks(Scsi_Device * SDpnt)
} }
memset(SCpnt, 0, sizeof(Scsi_Cmnd)); memset(SCpnt, 0, sizeof(Scsi_Cmnd));
init_timer(&SCpnt->eh_timeout);
SCpnt->host = SDpnt->host; SCpnt->host = SDpnt->host;
SCpnt->device = SDpnt; SCpnt->device = SDpnt;
SCpnt->target = SDpnt->id; SCpnt->target = SDpnt->id;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment