RE: [PATCH] ST_CORE: Error triggered by convert "char" to "int"

2013-01-10 Thread Liu, Chuansheng
> -Original Message- > From: Bi, Chao > Sent: Thursday, January 10, 2013 4:27 PM > To: a...@linux.intel.com; gre...@linuxfoundation.org; > a...@linux-foundation.org; pavan_sa...@ti.com > Cc: Liu, Chuansheng; linux-kernel@vger.kernel.org > Subject: [PATCH] ST_COR

[PATCH] ST_CORE: Error triggered by convert "char" to "int"

2013-01-10 Thread channing
When st driver decodes protocol index received from raw data, it does a value convert from "char" to "int". Because it's sign extension from bit8 to bit32, the "int" value maybe minus, in another word, the protocol index might be minus, but driver doesn't filter such case and may continue access m