summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2003-01-27 15:13:12 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2003-01-27 15:13:12 +0000
commit635652ecf69464c8743bed2ce9b7ac1b49a1d92f (patch)
tree062c6f08219a59b1aa0cbe33009f60dce196e3e7 /cpukit
parent2003-01-27 Eugeny S. Mints <Eugeny.Mints@oktet.ru> (diff)
downloadrtems-635652ecf69464c8743bed2ce9b7ac1b49a1d92f.tar.bz2
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.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/libblock/src/blkdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libblock/src/blkdev.c b/cpukit/libblock/src/blkdev.c
index d769dc45ca..1d5746f472 100644
--- a/cpukit/libblock/src/blkdev.c
+++ b/cpukit/libblock/src/blkdev.c
@@ -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);