xen/blkfront: fix ring info addressing
authorJuergen Gross <jgross@suse.com>
Thu, 5 Mar 2020 15:51:29 +0000 (16:51 +0100)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Thu, 5 Mar 2020 15:55:01 +0000 (09:55 -0600)
commit4ab50af63d2eb5da5c1571f8518948514f535782
tree3a116da00caf05542e728e100d495f1ea1e30fa0
parent2f69a110e7bba3ec6bc089a2f736ca0941d887ed
xen/blkfront: fix ring info addressing

Commit 0265d6e8ddb890 ("xen/blkfront: limit allocated memory size to
actual use case") made struct blkfront_ring_info size dynamic. This is
fine when running with only one queue, but with multiple queues the
addressing of the single queues has to be adapted as the structs are
allocated in an array.

Fixes: 0265d6e8ddb890 ("xen/blkfront: limit allocated memory size to actual use case")
Reported-by: Sander Eikelenboom <linux@eikelenboom.it>
Tested-by: Sander Eikelenboom <linux@eikelenboom.it>
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Link: https://lore.kernel.org/r/20200305155129.28326-1-jgross@suse.com
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/block/xen-blkfront.c