]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb64bbb2e6828689b6f2067a40b850d0ff757b6dd
tree3a116da00caf05542e728e100d495f1ea1e30fa0
parentfe8518c6f129160dde7dca848ce3b4efb591cee5
xen/blkfront: fix ring info addressing

Commit 5a830c2f354b18 ("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: 5a830c2f354b18 ("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