OSDN Git Service

virtio_net: Fix error handling in virtnet_restore()
authorXie Yongji <xieyongji@bytedance.com>
Mon, 17 May 2021 08:45:16 +0000 (16:45 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Sat, 3 Jul 2021 08:50:52 +0000 (04:50 -0400)
commit3f2869cace829fb4b80fc53b3ddaa7f4ba9acbf1
treefecec2c89df70fc7f9d4a3030e3495b608c1f474
parentb71ba22e7c6c6b279c66f53ee7818709774efa1f
virtio_net: Fix error handling in virtnet_restore()

Do some cleanups in virtnet_restore() when virtnet_cpu_notif_add() failed.

Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
Link: https://lore.kernel.org/r/20210517084516.332-1-xieyongji@bytedance.com
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/net/virtio_net.c