mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
2003-01-27 Eugeny S. Mints <Eugeny.Mints@oktet.ru>
* src/blkdev.c: Per PR331 fix bug which is tripped by writing 512 byte blocks to 512 byte aligned positions.
This commit is contained in:
@@ -117,7 +117,7 @@ rtems_blkdev_generic_write(
|
||||
bdbuf_buffer *diskbuf;
|
||||
int copy;
|
||||
|
||||
if ((blkofs == 0) && (count > block_size))
|
||||
if ((blkofs == 0) && (count >= block_size))
|
||||
rc = rtems_bdbuf_get(dev, block, &diskbuf);
|
||||
else
|
||||
rc = rtems_bdbuf_read(dev, block, &diskbuf);
|
||||
|
||||
Reference in New Issue
Block a user