summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Gianforcaro <bgianf@serenityos.org>2021-11-29 03:03:33 -0800
committerAndreas Kling <kling@serenityos.org>2021-11-30 11:16:35 +0100
commite626d7098d6c3afbe83f2400b55565f8bc6f065a (patch)
tree6f167afc97f41ff1dae5ba15725f2121d1c8f558
parent1f65728d8b931c80ba15755fde0080a4e8dc27d9 (diff)
downloadserenity-e626d7098d6c3afbe83f2400b55565f8bc6f065a.zip
Kernel: Handle string format errors in Device::pseudo_path(..) :^)
-rw-r--r--Kernel/Devices/Device.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Devices/Device.cpp b/Kernel/Devices/Device.cpp
index 57ba22bd29..766086ce83 100644
--- a/Kernel/Devices/Device.cpp
+++ b/Kernel/Devices/Device.cpp
@@ -145,7 +145,7 @@ Device::~Device()
ErrorOr<NonnullOwnPtr<KString>> Device::pseudo_path(const OpenFileDescription&) const
{
- return KString::try_create(String::formatted("device:{},{}", major(), minor()));
+ return KString::formatted("device:{},{}", major(), minor());
}
void Device::process_next_queued_request(Badge<AsyncDeviceRequest>, const AsyncDeviceRequest& completed_request)