]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
hv: utils: handle and propagate errors in kvp_register
authorThorsten Blum <thorsten.blum@linux.dev>
Tue, 14 Apr 2026 11:10:08 +0000 (13:10 +0200)
committerWei Liu <wei.liu@kernel.org>
Wed, 29 Apr 2026 21:13:58 +0000 (21:13 +0000)
commit3fcf923302a8f5c0dc3af3d2ca2657cb5fae4297
tree30d40cdb6422351e69555bbdb8fe104b67692614
parent48fcc895403cc97aa6c776cb65e6aa11290c0b44
hv: utils: handle and propagate errors in kvp_register

Make kvp_register() return an error code instead of silently ignoring
failures, and propagate the error from kvp_handle_handshake() instead of
returning success.

This propagates both kzalloc_obj() and hvutil_transport_send() failures
to kvp_handle_handshake() and thus to kvp_on_msg().

Fixes: 245ba56a52a3 ("Staging: hv: Implement key/value pair (KVP)")
Cc: stable@vger.kernel.org
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Long Li <longli@microsoft.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/hv_kvp.c