]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
[1/4] I/OAT: fix channel resources free for not allocated channels
authorMaciej Sosnowski <maciej.sosnowski@intel.com>
Fri, 7 Nov 2008 01:45:52 +0000 (01:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Nov 2008 23:00:51 +0000 (15:00 -0800)
commitc3d4f44f50b65b0b0290e357f8739cfb3f4bcaca
treeebc00379b3eeb562a1d810e3ca92ff37bd01bc37
parentfd0fcf5c29dd0339c5f5d86eb2cbe9fdad5bcd73
[1/4] I/OAT: fix channel resources free for not allocated channels

If the ioatdma driver is loaded but not used it does not allocate descriptors.
Before it frees channel resources it should first be sure
that they have been previously allocated.

Cc: <stable@kernel.org>
Signed-off-by: Maciej Sosnowski <maciej.sosnowski@intel.com>
Tested-by: Tom Picard <tom.s.picard@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/dma/ioat_dma.c