Re: [PATCH] i2c:at91: Fix a race condition during signal handling in at91_do_twi_xfer.

2014-09-02 Thread Wolfram Sang
On Tue, Aug 26, 2014 at 09:13:24PM +0200, Simon Lindgren wrote: > There is a race condition in at91_do_twi_xfer when signals arrive. > If a signal is recieved while waiting for a transfer to complete > wait_for_completion_interruptible_timeout() will return -ERESTARTSYS. > This is not handled

Re: [PATCH] i2c:at91: Fix a race condition during signal handling in at91_do_twi_xfer.

2014-09-02 Thread Wolfram Sang
On Tue, Aug 26, 2014 at 09:13:24PM +0200, Simon Lindgren wrote: There is a race condition in at91_do_twi_xfer when signals arrive. If a signal is recieved while waiting for a transfer to complete wait_for_completion_interruptible_timeout() will return -ERESTARTSYS. This is not handled

Re: [PATCH] i2c:at91: Fix a race condition during signal handling in at91_do_twi_xfer.

2014-09-01 Thread Ludovic Desroches
On Tue, Aug 26, 2014 at 09:13:24PM +0200, Simon Lindgren wrote: > There is a race condition in at91_do_twi_xfer when signals arrive. > If a signal is recieved while waiting for a transfer to complete > wait_for_completion_interruptible_timeout() will return -ERESTARTSYS. > This is not handled

Re: [PATCH] i2c:at91: Fix a race condition during signal handling in at91_do_twi_xfer.

2014-09-01 Thread Ludovic Desroches
On Tue, Aug 26, 2014 at 09:13:24PM +0200, Simon Lindgren wrote: There is a race condition in at91_do_twi_xfer when signals arrive. If a signal is recieved while waiting for a transfer to complete wait_for_completion_interruptible_timeout() will return -ERESTARTSYS. This is not handled

[PATCH] i2c:at91: Fix a race condition during signal handling in at91_do_twi_xfer.

2014-08-26 Thread Simon Lindgren
There is a race condition in at91_do_twi_xfer when signals arrive. If a signal is recieved while waiting for a transfer to complete wait_for_completion_interruptible_timeout() will return -ERESTARTSYS. This is not handled correctly resulting in interrupts still being enabled and a transfer being

[PATCH] i2c:at91: Fix a race condition during signal handling in at91_do_twi_xfer.

2014-08-26 Thread Simon Lindgren
There is a race condition in at91_do_twi_xfer when signals arrive. If a signal is recieved while waiting for a transfer to complete wait_for_completion_interruptible_timeout() will return -ERESTARTSYS. This is not handled correctly resulting in interrupts still being enabled and a transfer being