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:
Joel Sherrill
2003-01-27 15:13:12 +00:00
parent aa7d131a8f
commit 635652ecf6

View File

@@ -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);