]> git.baikalelectronics.ru Git - kernel.git/commit
xen-blkback: check the number of iovecs before allocating a bios
authorRoger Pau Monne <roger.pau@citrix.com>
Sat, 22 Jun 2013 07:59:17 +0000 (09:59 +0200)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 25 Jun 2013 14:00:58 +0000 (10:00 -0400)
commitd62c10c2ecfadeba7f41004aaa0440c9df204874
tree0a6eb8b048e694cc4ffb69af6f94f2bd5e8105cd
parent64d5c23712e998a42995fcd510372fa48786568c
xen-blkback: check the number of iovecs before allocating a bios

With the introduction of indirect segments we can receive requests
with a number of segments bigger than the maximum number of allowed
iovecs in a bios, so make sure that blkback doesn't try to allocate a
bios with more iovecs than BIO_MAX_PAGES

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkback/blkback.c