]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mthca: Add missing sg_init_table() in mthca_map_user_db()
authorRoland Dreier <rolandd@cisco.com>
Tue, 12 Feb 2008 22:38:22 +0000 (14:38 -0800)
committerRoland Dreier <rolandd@cisco.com>
Tue, 12 Feb 2008 22:38:22 +0000 (14:38 -0800)
commit878cd7a63c69a4d2964f761009a22c2f607182ed
treef034fd33459be36d5d2f47d176fee8ed79b7c7af
parent9b47bdd0bb20a73bb3bee171fe92fcbe38df9a24
IB/mthca: Add missing sg_init_table() in mthca_map_user_db()

Usually harmless, since the scatterlist is always hard-coded to a length
of 1, but it triggers a BUG() if CONFIG_DEBUG_SG=y, so we better fix it.
This fixes <http://bugzilla.kernel.org/show_bug.cgi?id=9934>.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_memfree.c