Fix a typo in adagetattr() from r223089. In particular, this restores

the ability to use ahci(4) for kernel dumps.
This commit is contained in:
Konstantin Belousov 2011-06-18 22:26:58 +00:00
parent 80905c3568
commit 125c410fb2

View File

@ -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)