diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-11-28 03:58:46 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-11-28 03:58:46 +0000 |
commit | b63ad0882a16a5d28003e57f2b0b81dee3fb322b (patch) | |
tree | 0a343ce219e2b8b38a5d702d66032c57b83d9720 /drivers/scsi/gdth_proc.c | |
parent | a9d7bff9a84dba79609a0002e5321b74c4d64c64 (diff) |
Merge with 2.4.0-test11.
Diffstat (limited to 'drivers/scsi/gdth_proc.c')
-rw-r--r-- | drivers/scsi/gdth_proc.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/scsi/gdth_proc.c b/drivers/scsi/gdth_proc.c index 13d7dc398..e37175af2 100644 --- a/drivers/scsi/gdth_proc.c +++ b/drivers/scsi/gdth_proc.c @@ -39,7 +39,17 @@ static int gdth_set_info(char *buffer,int length,int vh,int hanum,int busnum) piowr = (gdth_iowr_str *)buffer; sdev = scsi_get_host_dev(gdth_ctr_vtab[vh]); + + if(sdev==NULL) + return -ENOMEM; + scp = scsi_allocate_device(sdev, 1, FALSE); + + if(scp==NULL) + { + scsi_free_host_dev(sdev); + return -ENOMEM; + } scp->cmd_len = 12; scp->use_sg = 0; |