Skip to content

Commit

Permalink
Fix day-1 CTCI/LCS bug found by Vince Weaver [[email protected]]
Browse files Browse the repository at this point in the history
git-svn-id: file:///home/jj/hercules.svn/trunk@4426 956126f8-22a0-4046-8f4a-272fa8102e63
  • Loading branch information
Fish (David B Trout) committed Jul 29, 2007
1 parent 87bb403 commit 58d1bbf
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
28 Jul 2007 Fix day-1 CTCI/LCS bug - Vince Weaver [[email protected]] by Fish
24 Jul 2007 Force command-reject (until we can get it coded right)
for 3590 Medium Sense (x'C2') and Mode Sense (x'CF') - Fish
24 Jul 2007 Default to --blkid-32 and --no-erg for 3590 SCSI - Fish
Expand Down
7 changes: 6 additions & 1 deletion ctc_ctci.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
// $Id$
//
// $Log$
// Revision 1.67 2007/07/29 00:24:43 fish
// (comment change only)
//
// Revision 1.66 2007/06/23 00:04:05 ivan
// Update copyright notices to include current year (2007)
//
Expand Down Expand Up @@ -711,7 +714,9 @@ void CTCI_Read( DEVBLK* pDEVBLK, U16 sCount,

STORE_HW( pFrame->hwOffset, 0x0000 );

iLength = pCTCBLK->iFrameOffset + sizeof( CTCIHDR ) + 2;
// (fix for day-1 bug offered by Vince Weaver [[email protected]])
// iLength = pCTCBLK->iFrameOffset + sizeof( CTCIHDR ) + 2;
iLength = pCTCBLK->iFrameOffset + sizeof( CTCIHDR );

if( sCount < iLength )
{
Expand Down
7 changes: 6 additions & 1 deletion ctc_lcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
// $Id$
//
// $Log$
// Revision 1.64 2007/06/23 00:04:05 ivan
// Update copyright notices to include current year (2007)
//
// Revision 1.63 2007/02/25 15:05:46 fish
// Fix crash in LCS close if devinit of incomplete group
//
Expand Down Expand Up @@ -780,7 +783,9 @@ void LCS_Read( DEVBLK* pDEVBLK, U16 sCount,
// Terminate the frame buffer
STORE_HW( pFrame->hwOffset, 0x0000 );

iLength = pLCSDEV->iFrameOffset + 2;
// (fix for day-1 bug offered by Vince Weaver [[email protected]])
// iLength = pLCSDEV->iFrameOffset + 2;
iLength = pLCSDEV->iFrameOffset;

if( sCount < iLength )
{
Expand Down

0 comments on commit 58d1bbf

Please sign in to comment.