summaryrefslogtreecommitdiffstats
path: root/drivers/net/3c505.h
diff options
context:
space:
mode:
authorTomoya MORINAGA <tomoya-linux@dsn.lapis-semi.com>2011-10-11 14:43:21 +0200
committerVinod Koul <vinod.koul@linux.intel.com>2011-10-11 18:54:36 +0200
commitc43f1508686e8e4746012bf87995085eeb0f5307 (patch)
tree22b243bb93d07b2107c72671dbd60ee3bdf59886 /drivers/net/3c505.h
parentdma/timberdale: free_irq() on an error path (diff)
downloadlinux-c43f1508686e8e4746012bf87995085eeb0f5307.tar.xz
linux-c43f1508686e8e4746012bf87995085eeb0f5307.zip
pch_dma: Fix suspend issue
Currently, executing suspend/hibernation, memory access violation occurs. In pch_dma_save_regs() called by suspend(), you can see the following code. static void pch_dma_save_regs(struct pch_dma *pd) { snip... list_for_each_entry_safe(chan, _c, &pd->dma.channels, device_node) { pd_chan = to_pd_chan(chan); pd->ch_regs[i].dev_addr = channel_readl(pd_chan, DEV_ADDR); pd->ch_regs[i].mem_addr = channel_readl(pd_chan, MEM_ADDR); pd->ch_regs[i].size = channel_readl(pd_chan, SIZE); pd->ch_regs[i].next = channel_readl(pd_chan, NEXT); i++; } } Max loop count is 12 defined at pci_table. So, this caused memory access violation. This patch fixes the issue - Modify array size (MAX_CHAN_NR) Signed-off-by: Tomoya MORINAGA <tomoya-linux@dsn.lapis-semi.com> Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Diffstat (limited to 'drivers/net/3c505.h')
0 files changed, 0 insertions, 0 deletions