]> git.baikalelectronics.ru Git - kernel.git/commit
virtio/balloon: verify device has config space
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 12 Jan 2015 14:23:37 +0000 (16:23 +0200)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 21 Jan 2015 05:58:48 +0000 (16:28 +1030)
commit48f6186401320910e18bd1ac4b9b9adbdf03afb1
tree00e5dbaa1ce34f85d271dc088262d584178c98b0
parent525b1e413d8014986142424da8fa20e3311919a4
virtio/balloon: verify device has config space

Some devices might not implement config space access
(e.g. remoteproc used not to - before 3.9).
virtio/balloon needs config space access so make it
fail gracefully if not there.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/virtio/virtio_balloon.c