mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +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) {
|
||||
case BLOCK_IOCTL_GETDESC:
|
||||
*(blockdesc_t *)arg = *desc;
|
||||
((blockdesc_t *)arg)->write = NULL;
|
||||
((blockdesc_t *)arg)->read = NULL;
|
||||
((blockdesc_t *)arg)->private = NULL;
|
||||
break;
|
||||
default:
|
||||
ret = ENOTTY;
|
||||
|
||||
Reference in New Issue
Block a user