diff options
Diffstat (limited to 'drivers/scsi/gdth.c')
-rw-r--r-- | drivers/scsi/gdth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/gdth.c b/drivers/scsi/gdth.c index 43afd476e606..0f3eb22b979a 100644 --- a/drivers/scsi/gdth.c +++ b/drivers/scsi/gdth.c | |||
@@ -724,7 +724,7 @@ int __gdth_execute(struct scsi_device *sdev, gdth_cmd_str *gdtcmd, char *cmnd, | |||
724 | int timeout, u32 *info) | 724 | int timeout, u32 *info) |
725 | { | 725 | { |
726 | Scsi_Cmnd *scp; | 726 | Scsi_Cmnd *scp; |
727 | DECLARE_COMPLETION(wait); | 727 | DECLARE_COMPLETION_ONSTACK(wait); |
728 | int rval; | 728 | int rval; |
729 | 729 | ||
730 | scp = kmalloc(sizeof(*scp), GFP_KERNEL); | 730 | scp = kmalloc(sizeof(*scp), GFP_KERNEL); |
@@ -764,7 +764,7 @@ int __gdth_execute(struct scsi_device *sdev, gdth_cmd_str *gdtcmd, char *cmnd, | |||
764 | { | 764 | { |
765 | Scsi_Cmnd *scp = scsi_allocate_device(sdev, 1, FALSE); | 765 | Scsi_Cmnd *scp = scsi_allocate_device(sdev, 1, FALSE); |
766 | unsigned bufflen = gdtcmd ? sizeof(gdth_cmd_str) : 0; | 766 | unsigned bufflen = gdtcmd ? sizeof(gdth_cmd_str) : 0; |
767 | DECLARE_COMPLETION(wait); | 767 | DECLARE_COMPLETION_ONSTACK(wait); |
768 | int rval; | 768 | int rval; |
769 | 769 | ||
770 | if (!scp) | 770 | if (!scp) |