Changeset e3aa7c1 in rtems


Ignore:
Timestamp:
Apr 16, 2003, 7:35:11 PM (17 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
3b585c3
Parents:
4426855
Message:

2002-04-10 Victor V. Vengerov <vvv@…>

PR 385/filesystem

  • src/ramdisk.c: The "from" and "to" locations are calculated as the start of the block within the ram that data is to be transferred from/to for reads and writes respectively. However, within the loops, the "from" and "to" locations are never updated. The loop should have been updated as:

from += rd->block_size;

and

to += rd->block_size;

within the for loops in the ramdisk_read and ramdisk_write routines,
respectively.

Location:
cpukit/libblock
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libblock/ChangeLog

    r4426855 re3aa7c1  
     12002-04-10      Victor V. Vengerov <vvv@oktet.ru>
     2
     3        PR 385/filesystem
     4        * src/ramdisk.c: The "from" and "to" locations are calculated as
     5        the start of the block within the ram that data is to be transferred
     6        from/to for reads and writes respectively.  However, within
     7        the loops, the "from" and "to" locations are never updated.  The loop
     8        should have been updated as:
     9            from += rd->block_size;
     10        and
     11            to += rd->block_size;
     12        within the for loops in the ramdisk_read and ramdisk_write routines,
     13        respectively.
     14
    1152003-03-27      Joel Sherrill <joel@OARcorp.com>
    216
  • cpukit/libblock/src/ramdisk.c

    r4426855 re3aa7c1  
    6262        memcpy(sg->buffer, from, count);
    6363        remains -= count;
     64        from += count;
    6465    }
    6566    req->req_done(req->done_arg, RTEMS_SUCCESSFUL, 0);
     
    9697        memcpy(to, sg->buffer, count);
    9798        remains -= count;
     99        to += count;
    98100    }
    99101    req->req_done(req->done_arg, RTEMS_SUCCESSFUL, 0);
Note: See TracChangeset for help on using the changeset viewer.