[PATCH] fmr pool: remove unnecessary pointer dereference
ib_fmr_pool_map_phys gets the virtual address by pointer but never writes there, and users (e.g. srp) seem to assume this and ignore the value returned. This patch cleans up the API to get the VA by value, and updates all users. Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il> Acked-by: Roland Dreier <rolandd@cisco.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
74f76fbac7
commit
adfaa888a2
@ -594,7 +594,7 @@ int iser_reg_page_vec(struct iser_conn *ib_conn,
|
||||
mem = ib_fmr_pool_map_phys(ib_conn->fmr_pool,
|
||||
page_list,
|
||||
page_vec->length,
|
||||
&io_addr);
|
||||
io_addr);
|
||||
|
||||
if (IS_ERR(mem)) {
|
||||
status = (int)PTR_ERR(mem);
|
||||
|
Reference in New Issue
Block a user