Re: [PATCH] RDMA/rtrs: server: Fix error handling in get_or_create_srv

From: Markus Elfring

Date: Tue Nov 04 2025 - 09:59:33 EST


> get_or_create_srv() fails to call put_device() after
> device_initialize() when memory allocation fails. …

Why do you propose then to replace a kfree(srv) call by put_device(&srv->dev)?


Would an other word wrapping be a bit nicer for such a change description?
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.18-rc4#n658

Regards,
Markus