commit | b7f9c112a5e7f68d77a31c79f5942a3272ae9a3b | [log] [tgz] |
---|---|---|
author | Roland Dreier <rolandd@cisco.com> | Tue Feb 19 10:42:50 2008 -0800 |
committer | Roland Dreier <rolandd@cisco.com> | Tue Feb 19 10:42:50 2008 -0800 |
tree | 23839936fc223e7076eb4a482e8720b81801f107 | |
parent | ec229e5e81b3cf757e5e8b6a8bd0b4f32fe52f8c [diff] |
IB/mthca: Free correct MPT on error exit from mthca_fmr_alloc() When mthca_fmr_alloc() returns an error, it should free the MPT at the index key, not mr->ibmr.lkey, since the lkey has been mangled by hw_index_to_key() and no longer is the real index. This bug causes corruption of the MPT table free bitmap when mthca_fmr_alloc() fails. Signed-off-by: Roland Dreier <rolandd@cisco.com>