Properly initialize the device_hooks in the null and console drivers to include
the select/deselect/readv/writev hooks. Not that it would matter as the static memory there is cleared to 0 anyway. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26080 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -785,6 +785,13 @@ find_device(const char *name)
|
|||||||
&console_ioctl,
|
&console_ioctl,
|
||||||
&console_read,
|
&console_read,
|
||||||
&console_write,
|
&console_write,
|
||||||
|
/* Leave select/deselect/readv/writev undefined. The kernel will
|
||||||
|
* use its own default implementation. The basic hooks above this
|
||||||
|
* line MUST be defined, however. */
|
||||||
|
NULL,
|
||||||
|
NULL,
|
||||||
|
NULL,
|
||||||
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!strcmp(name, DEVICE_NAME))
|
if (!strcmp(name, DEVICE_NAME))
|
||||||
|
|||||||
@@ -92,6 +92,13 @@ find_device(const char *name)
|
|||||||
&null_ioctl,
|
&null_ioctl,
|
||||||
&null_read,
|
&null_read,
|
||||||
&null_write,
|
&null_write,
|
||||||
|
/* Leave select/deselect/readv/writev undefined. The kernel will
|
||||||
|
* use its own default implementation. The basic hooks above this
|
||||||
|
* line MUST be defined, however. */
|
||||||
|
NULL,
|
||||||
|
NULL,
|
||||||
|
NULL,
|
||||||
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!strcmp(name, DEVICE_NAME))
|
if (!strcmp(name, DEVICE_NAME))
|
||||||
|
|||||||
Reference in New Issue
Block a user