[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20171009054327.GA12559@kroah.com>
Date: Mon, 9 Oct 2017 07:43:27 +0200
From: Greg KH <gregkh@...uxfoundation.org>
To: Jia-Ju Bai <baijiaju1990@....com>
Cc: forest@...ttletooquiet.net, simon@...anor.nu, tvboxspy@...il.com,
scott@...heina.com, dan.a.cashman@...il.com,
golubev.mikhail@...il.com, bhelgaas@...gle.com,
devel@...verdev.osuosl.org,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
linux-pci@...r.kernel.org
Subject: Re: [BUG] vt6655: A possible sleep-in-atomic bug in vt6655_suspend
On Mon, Oct 09, 2017 at 09:10:28AM +0800, Jia-Ju Bai wrote:
> According to device_main.c, 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
>
> A possible fix is to replace msleep with mdelay in
> __pci_start_power_transition in drivers/pci/pci.c.
Patches are usually best to send in for things that you find like this.
thanks,
greg k-h
Powered by blists - more mailing lists