1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:47:47 +00:00

Kernel/Graphics: Handle correctly unknown ioctls on a DisplayConnector

In such case, we should not assert but instead just return EINVAL.
This commit is contained in:
Liav A 2022-10-23 14:02:57 +03:00 committed by Gunnar Beutner
parent e2ebc8826f
commit e3de568a45
2 changed files with 11 additions and 6 deletions

View file

@ -148,7 +148,7 @@ private:
virtual void will_be_destroyed() override;
virtual void after_inserting() override;
bool ioctl_requires_ownership(unsigned request) const;
ErrorOr<bool> ioctl_requires_ownership(unsigned request) const;
OwnPtr<Memory::Region> m_framebuffer_region;
OwnPtr<Memory::Region> m_fake_writes_framebuffer_region;