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)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 12 May 2011 12:55:51 +0000 (08:55 -0400)
commit4352b47ab7918108b389a48d2163c9a4c2aaf139
tree0cff95e7f551f838de24c516d241449bfb4e07d3
parentedc83d47a9928281ecf6fb709753edb3c58ae7f1
xen-blkfront: fix data size for xenbus_gather in blkfront_connect

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>
drivers/block/xen-blkfront.c