From 16f5dfa58485bafdb9552a52d6852188723cf69f Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Thu, 10 Feb 2005 05:13:28 +0000 Subject: Remove leftover assert on the block glue. --- debian/changelog | 1 + debian/patches/20_glue_block_assert.patch | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 debian/patches/20_glue_block_assert.patch diff --git a/debian/changelog b/debian/changelog index aa9a26e..198146f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,7 @@ gnumach (1:20040915.dfsg.1-2) UNRELEASED; urgency=low Thanks to Regis Boudin . * Sync patches with latest ones sent to upstream. * Fix Subversion repository address. + * Remove leftover assert on the block glue. -- Guillem Jover Mon, 7 Feb 2005 07:37:48 +0100 diff --git a/debian/patches/20_glue_block_assert.patch b/debian/patches/20_glue_block_assert.patch new file mode 100644 index 0000000..bd99113 --- /dev/null +++ b/debian/patches/20_glue_block_assert.patch @@ -0,0 +1,21 @@ +#DPATCHLEVEL=1 + +2005-02-10 Guillem Jover + + * linux/dev/glue/block.c (rdwr_partial): Remove leftover assert. + +The error can be reproduced by "fdisk /dev/hf0". Giving: + + linux/dev/glue/block.c 547 (rdwr_partial): assert(*resid <= c); + +diff -Naur gnumach-20040915.orig/linux/dev/glue/block.c gnumach-20040915/linux/dev/glue/block.c +--- gnumach-20040915.orig/linux/dev/glue/block.c 2005-02-10 05:40:34.000000000 +0100 ++++ gnumach-20040915/linux/dev/glue/block.c 2005-02-10 05:59:14.000000000 +0100 +@@ -544,7 +544,6 @@ rdwr_partial (int rw, kdev_t dev, loff_t + { + o = *off & BMASK; + c = bh->b_size - o; +- assert (*resid <= c); + if (c > *resid) + c = *resid; + if (rw == READ) -- cgit v1.2.3