summaryrefslogtreecommitdiffstats
path: root/drivers/message/i2o
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2007-10-24 13:21:21 +0200
committerJens Axboe <jens.axboe@oracle.com>2007-10-24 13:21:21 +0200
commit3d1266c7042e696704e22085a0f55c714bc06194 (patch)
tree537e14b96d331d5918fc090eaf9b0561b299be02 /drivers/message/i2o
parent23464ffa47689e46985fb10ae9e34bbc9e83f387 (diff)
downloadlinux-3d1266c7042e696704e22085a0f55c714bc06194.tar.gz
linux-3d1266c7042e696704e22085a0f55c714bc06194.tar.bz2
linux-3d1266c7042e696704e22085a0f55c714bc06194.zip
SG: audit of drivers that use blk_rq_map_sg()
They need to properly init the sg table, or blk_rq_map_sg() will complain if CONFIG_DEBUG_SG is set. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'drivers/message/i2o')
-rw-r--r--drivers/message/i2o/i2o_block.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/message/i2o/i2o_block.c b/drivers/message/i2o/i2o_block.c
index d602ba6d5417..682406168de9 100644
--- a/drivers/message/i2o/i2o_block.c
+++ b/drivers/message/i2o/i2o_block.c
@@ -284,6 +284,7 @@ static inline struct i2o_block_request *i2o_block_request_alloc(void)
return ERR_PTR(-ENOMEM);
INIT_LIST_HEAD(&ireq->queue);
+ sg_init_table(ireq->sg_table, I2O_MAX_PHYS_SEGMENTS);
return ireq;
};