Re: [PATCH 04/17] vhost: prep vhost_dev_init users to handle failures

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 2020/10/22 上午8:34, Mike Christie wrote:
This is just a prep patch to get vhost_dev_init callers ready to handle
the next patch where the function can fail. In this patch vhost_dev_init
just returns 0, but I think it's easier to check for goto/error handling
errors separated from the next patch.

Signed-off-by: Mike Christie<michael.christie@xxxxxxxxxx>
---
  drivers/vhost/net.c   | 11 +++++++----
  drivers/vhost/scsi.c  |  7 +++++--
  drivers/vhost/test.c  |  9 +++++++--
  drivers/vhost/vdpa.c  |  7 +++++--
  drivers/vhost/vhost.c | 14 ++++++++------
  drivers/vhost/vhost.h | 10 +++++-----
  drivers/vhost/vsock.c |  9 ++++++---
  7 files changed, 43 insertions(+), 24 deletions(-)


Acked-by: Jason Wang <jasowang@xxxxxxxxxx>


_______________________________________________
Virtualization mailing list
Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linuxfoundation.org/mailman/listinfo/virtualization




[Index of Archives]     [KVM Development]     [Libvirt Development]     [Libvirt Users]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux