OSDN Git Service

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)
committerDoug Ledford <dledford@redhat.com>
Wed, 15 Apr 2015 20:07:12 +0000 (16:07 -0400)
commita065fe6aa25ba6ba93c02dc13486131bb3c64d5f
tree1f947568457fe28015a016373baedc0212ff315c
parent30bf1d58ae8e87fef20248c7166777deab0d7f9c
IB/iser: Fix wrong calculation of protection buffer length

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>
drivers/infiniband/ulp/iser/iser_initiator.c