Re: [PATCH] Input: synaptics-rmi4 - Fix an unchecked out of memory error path

2018-04-06 Thread Dmitry Torokhov
On Mon, Apr 02, 2018 at 05:52:52PM -0700, Andrew Duggan wrote: > > On 04/02/2018 07:03 AM, Christophe JAILLET wrote: > > When extending the rmi_spi buffers, we must check that no out of memory > > error occurs, otherwise we may access data above the currently allocated > > memory. > > > >

Re: [PATCH] Input: synaptics-rmi4 - Fix an unchecked out of memory error path

2018-04-06 Thread Dmitry Torokhov
On Mon, Apr 02, 2018 at 05:52:52PM -0700, Andrew Duggan wrote: > > On 04/02/2018 07:03 AM, Christophe JAILLET wrote: > > When extending the rmi_spi buffers, we must check that no out of memory > > error occurs, otherwise we may access data above the currently allocated > > memory. > > > >

Re: [PATCH] Input: synaptics-rmi4 - Fix an unchecked out of memory error path

2018-04-04 Thread Sasha Levin
Hi Christophe JAILLET. [This is an automated email] This commit has been processed by the -stable helper bot and determined to be a high probability candidate for -stable trees. (score: 7.5278) The bot has tested the following trees: v4.15.15, v4.14.32, v4.9.92, v4.4.126, v4.15.15: Build OK!

Re: [PATCH] Input: synaptics-rmi4 - Fix an unchecked out of memory error path

2018-04-04 Thread Sasha Levin
Hi Christophe JAILLET. [This is an automated email] This commit has been processed by the -stable helper bot and determined to be a high probability candidate for -stable trees. (score: 7.5278) The bot has tested the following trees: v4.15.15, v4.14.32, v4.9.92, v4.4.126, v4.15.15: Build OK!

Re: [PATCH] Input: synaptics-rmi4 - Fix an unchecked out of memory error path

2018-04-02 Thread Andrew Duggan
On 04/02/2018 07:03 AM, Christophe JAILLET wrote: When extending the rmi_spi buffers, we must check that no out of memory error occurs, otherwise we may access data above the currently allocated memory. Propagate the error code returned by 'rmi_spi_manage_pools()' instead. Yep, that

Re: [PATCH] Input: synaptics-rmi4 - Fix an unchecked out of memory error path

2018-04-02 Thread Andrew Duggan
On 04/02/2018 07:03 AM, Christophe JAILLET wrote: When extending the rmi_spi buffers, we must check that no out of memory error occurs, otherwise we may access data above the currently allocated memory. Propagate the error code returned by 'rmi_spi_manage_pools()' instead. Yep, that

[PATCH] Input: synaptics-rmi4 - Fix an unchecked out of memory error path

2018-04-02 Thread Christophe JAILLET
When extending the rmi_spi buffers, we must check that no out of memory error occurs, otherwise we may access data above the currently allocated memory. Propagate the error code returned by 'rmi_spi_manage_pools()' instead. Signed-off-by: Christophe JAILLET ---

[PATCH] Input: synaptics-rmi4 - Fix an unchecked out of memory error path

2018-04-02 Thread Christophe JAILLET
When extending the rmi_spi buffers, we must check that no out of memory error occurs, otherwise we may access data above the currently allocated memory. Propagate the error code returned by 'rmi_spi_manage_pools()' instead. Signed-off-by: Christophe JAILLET --- drivers/input/rmi4/rmi_spi.c | 7