From 635652ecf69464c8743bed2ce9b7ac1b49a1d92f Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 27 Jan 2003 15:13:12 +0000 Subject: 2003-01-27 Eugeny S. Mints * src/blkdev.c: Per PR331 fix bug which is tripped by writing 512 byte blocks to 512 byte aligned positions. --- cpukit/libblock/src/blkdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/libblock/src') 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); -- cgit v1.2.3