Re: [PATCH v2] ASoC: rsnd: fix usrcnt decrementing bug

2015-12-30 Thread Mark Brown
On Thu, Dec 24, 2015 at 08:02:39AM +0100, Andrzej Hajda wrote: > Field usrcnt is unsigned so it cannot be lesser than zero. > The patch fixes the check, moves it to the beginning of the function > and changes return value to -EIO in case of usercnt error. Please don't send new patches in reply to

Re: [PATCH v2] ASoC: rsnd: fix usrcnt decrementing bug

2015-12-23 Thread Kuninori Morimoto
Hi > > Field usrcnt is unsigned so it cannot be lesser than zero. > The patch fixes the check, moves it to the beginning of the function > and changes return value to -EIO in case of usercnt error. > > The problem has been detected using proposed semantic patch > scripts/coccinelle/tests/unsigne

[PATCH v2] ASoC: rsnd: fix usrcnt decrementing bug

2015-12-23 Thread Andrzej Hajda
Field usrcnt is unsigned so it cannot be lesser than zero. The patch fixes the check, moves it to the beginning of the function and changes return value to -EIO in case of usercnt error. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/unsigned_lesser_than_zero.