Staging: generic_serial: fix double locking bug
commitc976cc3aa99e813084fc4bd295c9f7b706738b48
authorDan Carpenter <error27@gmail.com>
Mon, 28 Feb 2011 19:28:31 +0000 (28 22:28 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 28 Feb 2011 21:21:20 +0000 (28 13:21 -0800)
treeeee120b3cbbcf3bca9b9a5e6dea6d9441f516ec0
parent2c590f3ca99c193a04fe90ec89046138b66fcc1e
Staging: generic_serial: fix double locking bug

spin_lock_irqsave() is not nestable.  The second time that it gets
called it overwrites the "flags" variable and so IRQs can't be restored
properly.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/generic_serial/generic_serial.c