Commit 97bbf2cf authored by Marek Marczykowski's avatar Marek Marczykowski Committed by Greg Kroah-Hartman
Browse files

xen-blkfront: fix data size for xenbus_gather in blkfront_connect



commit 4352b47a 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: default avatarMarek Marczykowski <marmarek@mimuw.edu.pl>
Acked-by: default avatarIan Campbell <Ian.Campbell@citrix.com>
[v1: Changed title]
Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent aa9e14a4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment