diff options
author | kib <kib@FreeBSD.org> | 2011-06-18 22:26:58 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2011-06-18 22:26:58 +0000 |
commit | 973360805e1376f50989d3f60152dd5fea279632 (patch) | |
tree | d924018ff56946bf6a43135ad4ae9193133c54fc /sys | |
parent | 54b5af424bef2b3351d9b0327ba4ecf12a46a9a7 (diff) | |
download | FreeBSD-src-973360805e1376f50989d3f60152dd5fea279632.zip FreeBSD-src-973360805e1376f50989d3f60152dd5fea279632.tar.gz |
Fix a typo in adagetattr() from r223089. In particular, this restores
the ability to use ahci(4) for kernel dumps.
Diffstat (limited to 'sys')
-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 f1a9433..ed0dbef 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) |