Commit 4352b47a authored by Marek Marczykowski's avatar Marek Marczykowski Committed by Konrad Rzeszutek Wilk

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: 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>
parent edc83d47
...@@ -1141,7 +1141,7 @@ static void blkfront_connect(struct blkfront_info *info) ...@@ -1141,7 +1141,7 @@ static void blkfront_connect(struct blkfront_info *info)
} }
err = xenbus_gather(XBT_NIL, info->xbdev->otherend, err = xenbus_gather(XBT_NIL, info->xbdev->otherend,
"feature-barrier", "%lu", &barrier, "feature-barrier", "%d", &barrier,
NULL); NULL);
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment