mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-25 03:54:17 +01:00
libefi: efipart_strategy() should return ENXIO when there is no media
We should return ENXIO to indicate the situation with device present, but no media.
This commit is contained in:
parent
b07d6aa2ae
commit
5af584ffc1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=323906
@ -857,7 +857,7 @@ efipart_strategy(void *devdata, int rw, daddr_t blk, size_t size,
|
||||
|
||||
if (pd->pd_blkio->Media->RemovableMedia &&
|
||||
!pd->pd_blkio->Media->MediaPresent)
|
||||
return (EIO);
|
||||
return (ENXIO);
|
||||
|
||||
bcd.dv_strategy = efipart_realstrategy;
|
||||
bcd.dv_devdata = devdata;
|
||||
|
Loading…
Reference in New Issue
Block a user