]> git.baikalelectronics.ru Git - kernel.git/commit
snsc: restore IRQs on error path in scdrv_write()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 18 Nov 2016 11:30:57 +0000 (14:30 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Nov 2016 19:25:34 +0000 (20:25 +0100)
commitb2e06887c118f6f121aa9c5208f6ce44cf18ea53
tree4eaa9f1d4b5a015a8ebf5861d55405a248df47b9
parent03bb14bfc51bfd2f162cdaf5f3f79cb95ddd5ea7
snsc: restore IRQs on error path in scdrv_write()

This bug is as old as git.  We need to be calling spin_unlock_irqrestore()
instead of regular spin_unlock() here.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/snsc.c