Skip to content

Commit

Permalink
ssb: Fix context assertion in ssb_pcicore_dev_irqvecs_enable
Browse files Browse the repository at this point in the history
This fixes a context assertion in ssb that makes b44 print
out warnings on resume.

This fixes the following kernel oops:
http://www.kerneloops.org/oops.php?number=12732
http://www.kerneloops.org/oops.php?number=11410

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Michael Buesch authored and John W. Linville committed Jun 4, 2008
1 parent a75eda4 commit a3bafee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/ssb/driver_pcicore.c
Original file line number Diff line number Diff line change
Expand Up @@ -537,12 +537,12 @@ int ssb_pcicore_dev_irqvecs_enable(struct ssb_pcicore *pc,
int err = 0;
u32 tmp;

might_sleep();

if (!pdev)
goto out;
bus = pdev->bus;

might_sleep_if(pdev->id.coreid != SSB_DEV_PCI);

/* Enable interrupts for this device. */
if (bus->host_pci &&
((pdev->id.revision >= 6) || (pdev->id.coreid == SSB_DEV_PCIE))) {
Expand Down

0 comments on commit a3bafee

Please sign in to comment.