Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167138324
D15839.id43861.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
620 B
Referenced Files
None
Subscribers
None
D15839.id43861.diff
View Options
Index: head/stand/i386/libi386/biosdisk.c
===================================================================
--- head/stand/i386/libi386/biosdisk.c
+++ head/stand/i386/libi386/biosdisk.c
@@ -594,8 +594,8 @@
*rsize = 0;
/* Get disk blocks, this value is either for whole disk or for partition */
- if (disk_ioctl(dev, DIOCGMEDIASIZE, &disk_blocks)) {
- /* DIOCGMEDIASIZE does return bytes. */
+ if (disk_ioctl(dev, DIOCGMEDIASIZE, &disk_blocks) == 0) {
+ /* DIOCGMEDIASIZE returns bytes. */
disk_blocks /= BD(dev).bd_sectorsize;
} else {
/* We should not get here. Just try to survive. */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Aug 20, 10:11 AM (10 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36989029
Default Alt Text
D15839.id43861.diff (620 B)
Attached To
Mode
D15839: Correct logic error
Attached
Detach File
Event Timeline
Log In to Comment