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/eata_dma_proc.c | |
parent | a9d7bff9a84dba79609a0002e5321b74c4d64c64 (diff) |
Merge with 2.4.0-test11.
Diffstat (limited to 'drivers/scsi/eata_dma_proc.c')
-rw-r--r-- | drivers/scsi/eata_dma_proc.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/scsi/eata_dma_proc.c b/drivers/scsi/eata_dma_proc.c index 7961483e1..3ee72657c 100644 --- a/drivers/scsi/eata_dma_proc.c +++ b/drivers/scsi/eata_dma_proc.c @@ -153,7 +153,18 @@ int eata_proc_info(char *buffer, char **start, off_t offset, int length, } else { SDev = scsi_get_host_dev(HBA_ptr); + + if(SDev == NULL) + return -ENOMEM; + scmd = scsi_allocate_request(SDev); + + if(scmd == NULL) + { + scsi_free_host_dev(SDev); + return -ENOMEM; + } + cmnd[0] = LOG_SENSE; cmnd[1] = 0; |