aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2011-11-24 06:59:00 -0500
committerJens Axboe <axboe@kernel.dk>2011-11-24 06:59:00 -0500
commit3e54a3d1b83220d748f1a27c8999634be7a83949 (patch)
tree46807ff2423c3679cc40cc42d71ab6a9509de992 /drivers/block
parent60ec0eecfa8968d0f1188e3730979196ac28b9de (diff)
mtip32xx: uninitialized variable in mtip_quiesce_io()
We recently introduce new continue in the loop which make gcc complain. In theory if MTIP_FLAG_SVC_THD_ACTIVE_BIT is set, we could hit continue over and over until eventually we time out of the loop. In that case "active" should be set as true, but right now it's uninitialized. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/mtip32xx/mtip32xx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/block/mtip32xx/mtip32xx.c b/drivers/block/mtip32xx/mtip32xx.c
index b5d843a02bfa..9bc10e31a143 100644
--- a/drivers/block/mtip32xx/mtip32xx.c
+++ b/drivers/block/mtip32xx/mtip32xx.c
@@ -1026,7 +1026,8 @@ static void mtip_issue_non_ncq_command(struct mtip_port *port, int tag)
1026static int mtip_quiesce_io(struct mtip_port *port, unsigned long timeout) 1026static int mtip_quiesce_io(struct mtip_port *port, unsigned long timeout)
1027{ 1027{
1028 unsigned long to; 1028 unsigned long to;
1029 unsigned int n, active; 1029 unsigned int n;
1030 unsigned int active = 1;
1030 1031
1031 to = jiffies + msecs_to_jiffies(timeout); 1032 to = jiffies + msecs_to_jiffies(timeout);
1032 do { 1033 do {