usb: ehci: add capability mmio write function
commitdff0367cf66f489aa772320fa2937a8cac1ca30d
authorPrasad J Pandit <pjp@fedoraproject.org>
Fri, 29 Jan 2016 13:00:34 +0000 (29 18:30 +0530)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 18 Mar 2016 13:20:39 +0000 (18 14:20 +0100)
treec47fa23377280ce69ae9d124aadbe11ee4c28b80
parent983bff3530782d51c46c8d7c0e17e2a9dfe5fb77
usb: ehci: add capability mmio write function

USB Ehci emulation supports host controller capability registers.
But its mmio '.write' function was missing, which lead to a null
pointer dereference issue. Add a do nothing 'ehci_caps_write'
definition to avoid it; Do nothing because capability registers
are Read Only(RO).

Reported-by: Zuozhi Fzz <zuozhi.fzz@alibaba-inc.com>
Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Message-id: 1454072434-16045-1-git-send-email-ppandit@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-ehci.c