Changeset 662814d in rtems for cpukit/libblock/src


Ignore:
Timestamp:
Sep 6, 2002, 12:01:30 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
87da638
Parents:
640e0dd6
Message:

2002-09-06 Alexander M. Kukuta <kam@…>

  • src/bdbuf.c: Per PR282, correct problem in function rtems_bdbuf_read() where device ioctl() is called with the logical device number used instead of corresponding physical device number.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libblock/src/bdbuf.c

    r640e0dd6 r662814d  
    10891089    mutex_attr.priority_ceiling = 0;
    10901090
    1091     _CORE_mutex_Initialize(&bd_buf->transfer_sema,
    1092                            &mutex_attr, CORE_MUTEX_LOCKED);
     1091    _CORE_mutex_Initialize(&bd_buf->transfer_sema, OBJECTS_NO_CLASS,
     1092                           &mutex_attr, CORE_MUTEX_LOCKED, NULL);
    10931093}
    10941094
     
    11131113    bdbuf_buffer *bd_buf = arg;
    11141114    bd_buf->status = status;
    1115     bd_buf->error = error;
     1115    bd_buf->error = RTEMS_IO_ERROR;
    11161116    bd_buf->in_progress = bd_buf->modified = FALSE;
    11171117    _CORE_mutex_Surrender(&bd_buf->transfer_sema, 0, NULL);
     
    11401140    bdbuf_buffer *bd_buf = arg;
    11411141    bd_buf->status = status;
    1142     bd_buf->error = error;
     1142    bd_buf->error = RTEMS_IO_ERROR;
    11431143    _CORE_mutex_Surrender(&bd_buf->transfer_sema, 0, NULL);
    11441144    _CORE_mutex_Flush(&bd_buf->transfer_sema, NULL,
     
    12191219       
    12201220        bdbuf_initialize_transfer_sema(bd_buf);
    1221         result = dd->ioctl(device, BLKIO_REQUEST, &req);
     1221        result = dd->ioctl(pdd->dev, BLKIO_REQUEST, &req);
    12221222        if (result == -1)
    12231223        {
Note: See TracChangeset for help on using the changeset viewer.