vdpa: fix comment of vdpa_register_device()
authorJason Wang <jasowang@redhat.com>
Mon, 13 Apr 2020 09:37:38 +0000 (17:37 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 17 Apr 2020 10:05:30 +0000 (06:05 -0400)
commitac8b85f9ef14a6b43ff52b71631231c9599d1442
tree5a184a8fa26f13e893559c00a5e71215e7514112
parent58ad13729a8a3e0a354de46eaf9969f9116d4763
vdpa: fix comment of vdpa_register_device()

The function should be called only after a success calling for
vdpa_alloc_device().

Reported-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/20200413093738.28467-1-jasowang@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/vdpa.c