pvusb: set max grants only in initialise
authorJuergen Gross <jgross@suse.com>
Thu, 6 Dec 2018 13:39:23 +0000 (14:39 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 10 Dec 2018 13:13:35 +0000 (14:13 +0100)
commitf8224fb0faec9f4184b29b8158534536e6580748
treeff9d1a50baf4664f692d84c3079a20f000efbfae
parent4f818e7b7f8ecb5c166d093b8859fec2ddeca2ef
pvusb: set max grants only in initialise

Don't call xen_be_set_max_grant_refs() in usbback_alloc(), as the
gnttabdev pointer won't be initialised yet. The call can easily be
moved to usbback_connect().

Signed-off-by: Juergen Gross <jgross@suse.com>
Message-id: 20181206133923.30105-1-jgross@suse.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/xen-usb.c