mirror of
https://github.com/opnsense/src.git
synced 2026-06-13 10:40:19 -04:00
Swap IOC_OUT and IOC_IN for the SETDIR macro. The linux ioctl read and
write bits are swapped. Reviewed by: luoqi, marcel
This commit is contained in:
parent
cb479b1136
commit
5cdfd8f709
2 changed files with 2 additions and 2 deletions
|
|
@ -527,7 +527,7 @@ set_linux_cdrom_addr(union linux_cdrom_addr *addr, int format, int lba)
|
|||
addr->lba = lba;
|
||||
}
|
||||
|
||||
static unsigned dirbits[4] = { IOC_VOID, IOC_OUT, IOC_IN, IOC_INOUT };
|
||||
static unsigned dirbits[4] = { IOC_VOID, IOC_IN, IOC_OUT, IOC_INOUT };
|
||||
|
||||
#define SETDIR(c) (((c) & ~IOC_DIRMASK) | dirbits[args->cmd >> 30])
|
||||
|
||||
|
|
|
|||
|
|
@ -527,7 +527,7 @@ set_linux_cdrom_addr(union linux_cdrom_addr *addr, int format, int lba)
|
|||
addr->lba = lba;
|
||||
}
|
||||
|
||||
static unsigned dirbits[4] = { IOC_VOID, IOC_OUT, IOC_IN, IOC_INOUT };
|
||||
static unsigned dirbits[4] = { IOC_VOID, IOC_IN, IOC_OUT, IOC_INOUT };
|
||||
|
||||
#define SETDIR(c) (((c) & ~IOC_DIRMASK) | dirbits[args->cmd >> 30])
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue