graphics/nvidia: Add missing kernel protection flags.
This may be the real cause of #17766.
This commit is contained in:
@@ -893,7 +893,7 @@ open_hook(const char* name, uint32 flags, void** cookie)
|
||||
/* create this area with NO user-space read or write permissions, to prevent accidental damage */
|
||||
di->shared_area = create_area(shared_name, (void **)&(di->si), B_ANY_KERNEL_ADDRESS,
|
||||
((sizeof(shared_info) + (B_PAGE_SIZE - 1)) & ~(B_PAGE_SIZE - 1)), B_FULL_LOCK,
|
||||
B_CLONEABLE_AREA);
|
||||
B_KERNEL_READ_AREA | B_KERNEL_WRITE_AREA | B_CLONEABLE_AREA);
|
||||
if (di->shared_area < 0) {
|
||||
/* return the error */
|
||||
result = di->shared_area;
|
||||
|
||||
Reference in New Issue
Block a user