public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75f8e3f
)
fdc765: fix off by one
author
Alan Cox
<alan@linux.intel.com>
Thu, 28 Feb 2019 21:30:47 +0000
(21:30 +0000)
committer
Alan Cox
<alan@linux.intel.com>
Thu, 28 Feb 2019 21:30:47 +0000
(21:30 +0000)
Kernel/dev/devfdc765.c
patch
|
blob
|
history
diff --git
a/Kernel/dev/devfdc765.c
b/Kernel/dev/devfdc765.c
index
2ef9e4b
..
ef0bb05
100644
(file)
--- a/
Kernel/dev/devfdc765.c
+++ b/
Kernel/dev/devfdc765.c
@@
-20,7
+20,7
@@
static uint8_t trackpos[4] = { 0xFF, 0xFF, 0xFF, 0xFF };
int devfd_open(uint8_t minor, uint16_t flag)
{
flag;
- if(minor > FDC765_MAX_FLOPPY) {
+ if(minor >
=
FDC765_MAX_FLOPPY) {
udata.u_error = ENODEV;
return -1;
}