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:
parent
80905c3568
commit
125c410fb2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=223277
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user