Re: [patch 10/11] ir-keytable: avoid double lock

2010-05-04 Thread Dan Carpenter
On Mon, May 03, 2010 at 08:07:29PM -0300, Mauro Carvalho Chehab wrote: > a...@linux-foundation.org wrote: > > From: Dan Carpenter > > > > It's possible that we wanted to resize to a smaller size but we didn't > > have enough memory to create the new table. We need to test for that here > > so we

Re: [patch 10/11] ir-keytable: avoid double lock

2010-05-03 Thread Mauro Carvalho Chehab
a...@linux-foundation.org wrote: > From: Dan Carpenter > > It's possible that we wanted to resize to a smaller size but we didn't > have enough memory to create the new table. We need to test for that here > so we don't try to lock twice and dead lock. Also we free the "oldkeymap" > on that pat

[patch 10/11] ir-keytable: avoid double lock

2010-04-27 Thread akpm
From: Dan Carpenter It's possible that we wanted to resize to a smaller size but we didn't have enough memory to create the new table. We need to test for that here so we don't try to lock twice and dead lock. Also we free the "oldkeymap" on that path and that would be bad. Signed-off-by: Dan