IB/iser: Fix wrong calculation of protection buffer length
authorSagi Grimberg <sagig@mellanox.com>
Tue, 14 Apr 2015 15:08:13 +0000 (18:08 +0300)
committerSasha Levin <sasha.levin@oracle.com>
Sun, 17 May 2015 23:12:22 +0000 (19:12 -0400)
commit72f9b0fa0d5f729f482a61a3dcefb9b835a664e6
tree3864a5f75a630ad96f929ac250c80ddab7d745e0
parent4eb6d476fcf6ac71a0b0528785d2a6807c7f57fd
IB/iser: Fix wrong calculation of protection buffer length

[ Upstream commit a065fe6aa25ba6ba93c02dc13486131bb3c64d5f ]

This length miss-calculation may cause a silent data corruption
in the DIX case and cause the device to reference unmapped area.

Fixes: d77e65350f2d ('libiscsi, iser: Adjust data_length to include protection information')
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/infiniband/ulp/iser/iser_initiator.c