]> err.no Git - linux-2.6/commit
IB/srp: Fix unmapping of fake scatterlist
authorRoland Dreier <rolandd@cisco.com>
Wed, 29 Mar 2006 17:36:45 +0000 (09:36 -0800)
committerRoland Dreier <rolandd@cisco.com>
Wed, 29 Mar 2006 17:36:45 +0000 (09:36 -0800)
commit3f89f834497c0f37f16a3b6c32b1d60782facbca
tree4a27d2b5ed847fd90678d3e7758fe08b493426e1
parente71ac6032edf77a1e4a81f3e3b260807e94b37a5
IB/srp: Fix unmapping of fake scatterlist

The recently merged patch to create a fake scatterlist for non-SG SCSI
commands had a bug: the driver ended up doing dma_unmap_sg() on a
scatterlist scmnd->request_buffer rather than the fake scatter list it
created.  Fix this so that the driver unmaps the same thing it maps.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/srp/ib_srp.c