]> git.karo-electronics.de Git - karo-tx-linux.git/commit
xen-blkfront: fix data size for xenbus_gather in blkfront_connect
authorMarek Marczykowski <marmarek@mimuw.edu.pl>
Tue, 3 May 2011 16:04:52 +0000 (12:04 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 17 Aug 2012 19:35:10 +0000 (15:35 -0400)
commit5f89d486598fd0c5e5e18793093251a392ebd598
tree835e9429233c3db256ec147c6a060d681b989521
parent50f72600c24d98a0e102a7e8b7e3133d455f821c
xen-blkfront: fix data size for xenbus_gather in blkfront_connect

commit 4352b47ab7918108b389a48d2163c9a4c2aaf139 upstream.

barrier variable is int, not long. This overflow caused another variable
override: "err" (in PV code) and "binfo" (in xenlinux code -
drivers/xen/blkfront/blkfront.c). The later caused incorrect device
flags (RO/removable etc).

Signed-off-by: Marek Marczykowski <marmarek@mimuw.edu.pl>
Acked-by: Ian Campbell <Ian.Campbell@citrix.com>
[v1: Changed title]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/block/xen-blkfront.c