mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-07-06 20:09:01 +00:00
dm: fix use of uninitialized variable in monitor.c
@set_wakeup_timer(), "ack" is not initialized before passing it to "mngr_send_msg() as input. Tracked-On: #861 Signed-off-by: Yonghua Huang <yonghua.huang@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
parent
6793eb0604
commit
bacfc9b245
@ -228,6 +228,7 @@ int set_wakeup_timer(time_t t)
|
||||
strncpy(req.data.rtc_timer.vmname, vmname,
|
||||
sizeof(req.data.rtc_timer.vmname));
|
||||
|
||||
memset(&ack, 0, sizeof(struct mngr_msg));
|
||||
ret = mngr_send_msg(acrnd_fd, &req, &ack, 2);
|
||||
mngr_close(acrnd_fd);
|
||||
if (ret != sizeof(ack)) {
|
||||
|
Loading…
Reference in New Issue
Block a user