disk: Fix swapping maj1:min1 and maj2:min2
This commit is contained in:
1 parent
808ce724ee
commit
2fd11378c8
1 file changed
+1
-1
+1
-1
@@ -390,7 +390,7 @@ int disk_init(struct usb_device_info * dev) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Ensure that maj1:min1 is first device and maj2:min2 is second device */
|
/* Ensure that maj1:min1 is first device and maj2:min2 is second device */
|
||||||
if ( min2 < min1 ) {
|
if ( min2 != -1 && min2 < min1 ) {
|
||||||
tmp = min1;
|
tmp = min1;
|
||||||
min1 = min2;
|
min1 = min2;
|
||||||
min2 = tmp;
|
min2 = tmp;
|
||||||
|
|||||||
Reference in new issue
Block a user