[lkml]   [2017]   [Oct]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[BUG] vt6655: A possible sleep-in-atomic bug in vt6655_suspend
According to device_main.c, the driver may sleep under a spinlock,
and the function call path is:
vt6655_suspend (acquire the spinlock)
__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.

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

Jia-Ju Bai

 \ /
  Last update: 2017-10-09 03:13    [W:0.030 / U:0.676 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site