o perform a test of both
operands to avoid having unsigned wrap.
Signed-off-by: Vince Kim
---
Cahnges in v2:
- added missing opening curly brace at if statement
drivers/input/touchscreen/cyttsp4_core.c | 20
1 file changed, 20 insertions(+)
diff --git a/drivers/input/touch
There are several places to perform subtraction to calculate buffer
size such as:
si->si_ofs.cydata_size = si->si_ofs.test_ofs - si->si_ofs.cydata_ofs;
...
p = krealloc(si->si_ptrs.cydata, si->si_ofs.cydata_size, GFP_KERNEL);
Actually, data types of above variables during subtraction are size_t,
Thanks for the comment.
I will look through it.
Vince
-Original Message-
From: Karel Zak [mailto:[EMAIL PROTECTED]
Sent: Monday, November 19, 2007 5:12 PM
To: Vince Kim
Cc: linux-kernel@vger.kernel.org; "Richard Purdie
[rpurdie"@openedhand.com
Subject: Re: [PATCH 2/2 ] Add s
/* function pointer to uncompress block */
+ int (* cramfs_uncompress_block) (void *dst, int dstlen,
void *src, int srclen);
};
static inline struct cramfs_sb_info *CRAMFS_SB(struct super_block *sb)
On Mon, 2007-10-29 at 11:45 -0700, vince kim wrote:
> Thanks for your comment
7,7 +897,8 @@
if (opt_errors &&
(warn_namelen||warn_skip||warn_size||warn_uid||warn_gid||warn_dev))
exit(MKFS_ERROR);
-
+ if (opt_lzo)
+ cramfs_lzo_exit();
exit(MKFS_OK);
}
On Fri, 2007-10-26 at 16:26 -0700, vince kim wr
This is a kernel patch to add support LZO compression in cramfs.
I used LZO kernel library patch done by Richard Purdie
[EMAIL PROTECTED], and my cramfs patch requires his LZO library
patch.
Richard's LZO kernel library patch can be found at:
http://lwn.net/Articles/238723/
This patch is generate
This patch adds support LZO compression in mkcramfs tool, so it can
generate a cramfs image compress with LZO.
To compile mkcramfs with this patch, liblzo2-dev package must be
installed.
The patch is created against mkcramfs tool ver 1.1 which can be found
at:
http://sourceforge.net/projects/cramf
7 matches
Mail list logo