]> git.baikalelectronics.ru Git - 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)
commitf549e2ff9db2eee5bf499127c1f0dd7a8fe95716
treeebc00379b3eeb562a1d810e3ca92ff37bd01bc37
parent58b54ad3f8552846bb76ef8cf3162ee7e3fc6fa3
[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