[PATCH v2] Input: cyttsp4 - Fix error on calculating memory size passed to krealloc.

2017-11-03 Thread Vince Kim
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

[PATCH] Input: cyttsp4 - Fix error on calculating memory size passed to krealloc.

2017-10-31 Thread Vince Kim
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,

RE: [PATCH 2/2 ] Add support LZO in mkcramfs tool

2007-11-21 Thread Vince Kim
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

Re: [PATCH 1/2 ] Add support LZO in cramfs

2007-10-30 Thread vince kim
/* 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

Re: [PATCH 2/2 ] Add support LZO in mkcramfs tool

2007-10-29 Thread vince kim
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

[PATCH 1/2 ] Add support LZO in cramfs

2007-10-26 Thread vince kim
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

[PATCH 2/2 ] Add support LZO in mkcramfs tool

2007-10-26 Thread vince kim
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