diff --git a/libraries/libmesosphere/source/kern_k_server_session.cpp b/libraries/libmesosphere/source/kern_k_server_session.cpp index 4c805f78b..36159014c 100644 --- a/libraries/libmesosphere/source/kern_k_server_session.cpp +++ b/libraries/libmesosphere/source/kern_k_server_session.cpp @@ -810,7 +810,7 @@ namespace ams::kern { CleanupSpecialData(dst_process, dst_msg_ptr, dst_buffer_size); } } else { - CleanupServerHandles(src_message_buffer, src_buffer_size, src_message_paddr); + CleanupServerHandles(src_user ? src_message_buffer : 0, src_buffer_size, src_message_paddr); } /* Cleanup mappings. */