mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 23:18:21 +00:00
block: zero kernel addresses on ioctl
This commit is contained in:
@@ -141,6 +141,9 @@ static int ioctl(int minor, unsigned long request, void *arg, int *result) {
|
|||||||
switch (request) {
|
switch (request) {
|
||||||
case BLOCK_IOCTL_GETDESC:
|
case BLOCK_IOCTL_GETDESC:
|
||||||
*(blockdesc_t *)arg = *desc;
|
*(blockdesc_t *)arg = *desc;
|
||||||
|
((blockdesc_t *)arg)->write = NULL;
|
||||||
|
((blockdesc_t *)arg)->read = NULL;
|
||||||
|
((blockdesc_t *)arg)->private = NULL;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ret = ENOTTY;
|
ret = ENOTTY;
|
||||||
|
|||||||
Reference in New Issue
Block a user