diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2011-06-18 22:26:58 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2011-06-18 22:26:58 +0000 |
| commit | 125c410fb2a208e4340dc5a686044a0555f1ccfa (patch) | |
| tree | d924018ff56946bf6a43135ad4ae9193133c54fc | |
| parent | 80905c3568d6aaf6d9cdaecb824b42e445ad1917 (diff) | |
Notes
| -rw-r--r-- | sys/cam/ata/ata_da.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cam/ata/ata_da.c b/sys/cam/ata/ata_da.c index f1a943376752..ed0dbef444d7 100644 --- a/sys/cam/ata/ata_da.c +++ b/sys/cam/ata/ata_da.c @@ -818,7 +818,7 @@ adagetattr(struct bio *bp) int ret = -1; struct cam_periph *periph; - if (bp->bio_disk == NULL || bp->bio_disk->d_drv1) + if (bp->bio_disk == NULL || bp->bio_disk->d_drv1 == NULL) return ENXIO; periph = (struct cam_periph *)bp->bio_disk->d_drv1; if (periph->path == NULL) |
