]> git.itanic.dy.fi Git - linux-stable/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 May 2015 20:02:00 +0000 (22:02 +0200)
commitd362d17c1feea01778f0be5950632a05f7c69e4a
treeb2e257559f0a7a179750755796a501390220b6a4
parent04bb88958d0baabe2cbf2a948878604cd140df87
IB/iser: Fix wrong calculation of protection buffer length

commit a065fe6aa25ba6ba93c02dc13486131bb3c64d5f upstream.

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/ulp/iser/iser_initiator.c