]> 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)
commitf1464fc78a2ccd2c2a5bd0653ee24983b3f0f7e4
tree3a116da00caf05542e728e100d495f1ea1e30fa0
parent73873b193327add32df5320190031dc2e381022c
xen/blkfront: fix ring info addressing

Commit 45b1a97cb6e49d ("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: 45b1a97cb6e49d ("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