This is an automated email from the ASF dual-hosted git repository. michallenc pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit daa3fe0d16907ffa8b0209d01873b10d092a4f0c Author: yintao <[email protected]> AuthorDate: Tue Nov 4 11:10:03 2025 +0800 drivers/rptun: initialize vdev in rptun_create_device() GCC reports 'vdev' may be used uninitialized in rptun_create_device() when it reaches remoteproc_remove_virtio() on an error path. Initialize it to NULL. Signed-off-by: yintao <[email protected]> --- drivers/rptun/rptun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rptun/rptun.c b/drivers/rptun/rptun.c index 3ad7cc0a551..e8581f25927 100644 --- a/drivers/rptun/rptun.c +++ b/drivers/rptun/rptun.c @@ -649,7 +649,7 @@ static void rptun_remove_devices(FAR struct rptun_priv_s *priv) static int rptun_create_devices(FAR struct rptun_priv_s *priv) { - FAR struct virtio_device *vdev; + FAR struct virtio_device *vdev = NULL; bool remain = false; int ret; int i;
