Skip to contentSkip to conversation

Initialize vars in blkfront_connect

PATCH New Marek Marczykowski 1 participant 1 message Sep 4, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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).

drivers/block/xen-blkfront.c +0 -0
index 863d4c5..e3cbe08 100644
@@ -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:

Signature · 3 lines
Pozdrawiam / Best Regards,
Marek Marczykowski         | RLU #390519
marmarek at mimuw edu pl   | xmpp:marmarek at staszic waw pl

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel