]> git.baikalelectronics.ru Git - kernel.git/commit
[IB] mthca: Fix off by one bug in mthca_map_cmd
authorMichael S. Tsirkin <mst@mellanox.co.il>
Mon, 26 Sep 2005 16:42:09 +0000 (09:42 -0700)
committerRoland Dreier <rolandd@cisco.com>
Mon, 26 Sep 2005 16:42:09 +0000 (09:42 -0700)
commit4285b276f11e7871f64fe17e2004fa1b75a2277f
tree7245a298b11123ef81ded5afb92f1c711d643fed
parent8dade2fc7a643c5f6b52fa04242394359be5e3ab
[IB] mthca: Fix off by one bug in mthca_map_cmd

The loop in mthca_map_cmd() would fill one entry past the end of the
mailbox buffer before calling the firmware command.

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_cmd.c