remarkable-linux/drivers/staging/vt6655
Jia-Ju Bai 4e2836b431 vt6655: Fix a possible sleep-in-atomic bug in vt6655_suspend
[ Upstream commit 42c8eb3f6e ]

The driver may sleep under a spinlock, and the function call path is:
vt6655_suspend (acquire the spinlock)
  pci_set_power_state
    __pci_start_power_transition (drivers/pci/pci.c)
      msleep --> may sleep

To fix it, pci_set_power_state is called without having a spinlock.

This bug is found by my static analysis tool and my code review.

Signed-off-by: Jia-Ju Bai <baijiaju1990@163.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-12-20 10:10:35 +01:00
..
baseband.c Staging: vt6655: Replace dwIoBase by iobase 2016-10-17 10:30:09 +02:00
baseband.h staging: vt6655: baseband: Add identifier name to function definition argument 2017-03-12 15:27:40 +01:00
card.c Staging: vt6655: Fixing coding style warnings 2017-07-18 09:00:24 +02:00
card.h staging: vt6655 - add parameter names 2017-06-25 16:31:22 +02:00
channel.c staging: vt6655: Removes the FSF mailing address. 2016-10-16 10:26:28 +02:00
channel.h staging: vt6655 - add parameter names 2017-06-25 16:31:22 +02:00
desc.h staging: vt6655: Removes the FSF mailing address. 2016-10-16 10:26:28 +02:00
device.h staging: vt6655: Adding space around '+' 2016-10-16 10:27:28 +02:00
device_cfg.h staging: vt6655: Removes the FSF mailing address. 2016-10-16 10:26:28 +02:00
device_main.c vt6655: Fix a possible sleep-in-atomic bug in vt6655_suspend 2017-12-20 10:10:35 +01:00
dpc.c staging: vt6655: Removes the FSF mailing address. 2016-10-16 10:26:28 +02:00
dpc.h staging: vt6655: Removes the FSF mailing address. 2016-10-16 10:26:28 +02:00
Kconfig
key.c staging: vt6655: align function parameters to open parenthesis 2017-05-25 18:56:45 +02:00
key.h staging: vt6655: Removes the FSF mailing address. 2016-10-16 10:26:28 +02:00
mac.c Staging: vt6655: Fixing coding style warnings 2017-07-18 09:00:24 +02:00
mac.h staging: vt6655 - add parameter names 2017-06-25 16:31:22 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
power.c staging: vt6655: Removes the FSF mailing address. 2016-10-16 10:26:28 +02:00
power.h staging: vt6655 - add parameter names 2017-06-25 16:31:22 +02:00
rf.c staging: vt6655: Fixed coding style warnings on Block comments 2016-11-21 11:13:14 +01:00
rf.h staging: vt6655 - add parameter names 2017-06-25 16:31:22 +02:00
rxtx.c staging: vt6655: Fixed coding style warnings on Block comments 2016-11-21 11:13:14 +01:00
rxtx.h staging: vt6655: Copy argument names from function definition to declaration to fix checkpatch warnings 2017-03-16 11:48:59 +09:00
srom.c Staging: vt6655: Replace dwIoBase by iobase 2016-10-17 10:30:09 +02:00
srom.h Staging: vt6655: Replace dwIoBase by iobase 2016-10-17 10:30:09 +02:00
test
tmacro.h staging: vt6655: Removes the FSF mailing address. 2016-10-16 10:26:28 +02:00
TODO
upc.h staging: vt6655: Removes the FSF mailing address. 2016-10-16 10:26:28 +02:00