]> www.infradead.org Git - users/willy/xarray.git/commit
tools/hv: Add memory allocation check in hv_fcopy_start
authorZhu Jun <zhujun2@cmss.chinamobile.com>
Fri, 6 Sep 2024 09:13:33 +0000 (02:13 -0700)
committerWei Liu <wei.liu@kernel.org>
Mon, 9 Sep 2024 01:09:27 +0000 (01:09 +0000)
commit94e86b174d103d941b4afc4f016af8af9e5352fa
tree6e6df7094e3c8901eaf59a32abb880e4c9bd04aa
parent0b5530861eec1cf3f240a6a4a0ceed58f67fbcc5
tools/hv: Add memory allocation check in hv_fcopy_start

Added error handling for memory allocation failures
of file_name and path_name.

Signed-off-by: Zhu Jun <zhujun2@cmss.chinamobile.com>
Reviewed-by: Dexuan Cui <decui@microsoft.com>
Tested-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Link: https://lore.kernel.org/r/20240906091333.11419-1-zhujun2@cmss.chinamobile.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <20240906091333.11419-1-zhujun2@cmss.chinamobile.com>
tools/hv/hv_fcopy_uio_daemon.c