virtio: Check dev_set_name() return value
authorBo Liu <liubo03@inspur.com>
Thu, 7 Jul 2022 03:17:51 +0000 (23:17 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 11 Aug 2022 08:26:07 +0000 (04:26 -0400)
commit95bf9798779af166b1d6d184d794834214a1a261
tree55499c3ced73d210edda7233b6cc3fce6aaa8590
parentd650f830f38b19039958f3f4504ceeb2b5922da7
virtio: Check dev_set_name() return value

It's possible that dev_set_name() returns -ENOMEM, catch and handle this.

Signed-off-by: Bo Liu <liubo03@inspur.com>
Message-Id: <20220707031751.4802-1-liubo03@inspur.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
drivers/virtio/virtio.c