|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] Initialize vars in blkfront_connect
Hello,
barrier and flush variable isn't initialized, which cause undetermined
result in case of xenstore entries (feature-barrier and
feature-flush-cache) not present (feature_flush not set to 0).
Signed-off-by: Marek Marczykowski <marmarek@xxxxxxxxxxxx>
diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c
index 863d4c5..e3cbe08 100644
--- a/drivers/block/xen-blkfront.c
+++ b/drivers/block/xen-blkfront.c
@@ -1110,7 +1110,7 @@ static void blkfront_connect(struct blkfront_info
*info)
unsigned long sector_size;
unsigned int binfo;
int err;
- int barrier, flush;
+ int barrier = 0, flush = 0;
switch (info->connected) {
case BLKIF_STATE_CONNECTED:
--
Pozdrawiam / Best Regards,
Marek Marczykowski | RLU #390519
marmarek at mimuw edu pl | xmpp:marmarek at staszic waw pl
Attachment:
smime.p7s _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |