aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi/qla2xxx/qla_fw.h
diff options
context:
space:
mode:
authorBodo Stroesser2013-12-02 18:52:10 +0100
committerJames Bottomley2013-12-19 20:56:28 -0800
commit769989a4a09d7c825e182cf60604c06d8f2f70e4 (patch)
tree273cb753047de8d2f10cd916acbabc8bc1587af6 /drivers/scsi/qla2xxx/qla_fw.h
parent762a86a901417280b2af9e2004f05d7481f30441 (diff)
[SCSI] st: fix enlarge_buffer
This patch removes a bug in enlarge_buffer() that can make a read or write fail under special conditions. After changing TRY_DIRECT_IO to 0 and ST_MAX_SG to 32 in st_options.h, a program that writes a first block of 128k and than a second bigger block (e.g. 256k) fails. The second write returns errno EOVERFLOW, as enlarge_buffer() checks the sg list and detects that it already is full. As enlarge_buffer uses different page allocation orders depending on the size of the buffer needed, the check does not make sense. Signed-off-by: Bodo Stroesser <bstroesser@ts.fujitsu.com> Acked-by: Kai Mäkisara <kai.makisara@kolumbus.fi> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_fw.h')
0 files changed, 0 insertions, 0 deletions