Skip to content

Commit 7bd2976

Browse files
ausyskinlijinxia
authored andcommitted
dm: mei: add zero termination to devpath
Reset directory name to receive clean prints. Tracked-On: #1847 Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Acked-by: Acked-by: Yu Wang <yu1.wang@intel.com>
1 parent 87fbb70 commit 7bd2976

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

devicemodel/hw/pci/virtio/virtio_mei.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,7 @@ static int vmei_me_client_scan_list(struct virtio_mei *vmei)
806806
struct mei_client_properties props;
807807

808808
memset(&props, 0, sizeof(props));
809+
devpath[d_offset] = '\0';
809810

810811
DPRINTF("found client %s %s\n", ent->d_name, devpath);
811812

0 commit comments

Comments
 (0)