mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/async_tx
* 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/async_tx: iop-adma: fixup some kzalloc/memset confusions fsldma: update the fsldma driver MAINTAINERS info
This commit is contained in:
commit
1b5e2a7e23
2 changed files with 6 additions and 6 deletions
|
@ -1646,8 +1646,10 @@ W: http://linux-fbdev.sourceforge.net/
|
||||||
S: Maintained
|
S: Maintained
|
||||||
|
|
||||||
FREESCALE DMA DRIVER
|
FREESCALE DMA DRIVER
|
||||||
P; Zhang Wei
|
P: Li Yang
|
||||||
M: wei.zhang@freescale.com
|
M: leoli@freescale.com
|
||||||
|
P: Zhang Wei
|
||||||
|
M: zw@zh-kernel.org
|
||||||
L: linuxppc-embedded@ozlabs.org
|
L: linuxppc-embedded@ozlabs.org
|
||||||
L: linux-kernel@vger.kernel.org
|
L: linux-kernel@vger.kernel.org
|
||||||
S: Maintained
|
S: Maintained
|
||||||
|
|
|
@ -821,10 +821,10 @@ static int __devinit iop_adma_memcpy_self_test(struct iop_adma_device *device)
|
||||||
|
|
||||||
dev_dbg(device->common.dev, "%s\n", __func__);
|
dev_dbg(device->common.dev, "%s\n", __func__);
|
||||||
|
|
||||||
src = kzalloc(sizeof(u8) * IOP_ADMA_TEST_SIZE, GFP_KERNEL);
|
src = kmalloc(IOP_ADMA_TEST_SIZE, GFP_KERNEL);
|
||||||
if (!src)
|
if (!src)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
dest = kzalloc(sizeof(u8) * IOP_ADMA_TEST_SIZE, GFP_KERNEL);
|
dest = kzalloc(IOP_ADMA_TEST_SIZE, GFP_KERNEL);
|
||||||
if (!dest) {
|
if (!dest) {
|
||||||
kfree(src);
|
kfree(src);
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
@ -834,8 +834,6 @@ static int __devinit iop_adma_memcpy_self_test(struct iop_adma_device *device)
|
||||||
for (i = 0; i < IOP_ADMA_TEST_SIZE; i++)
|
for (i = 0; i < IOP_ADMA_TEST_SIZE; i++)
|
||||||
((u8 *) src)[i] = (u8)i;
|
((u8 *) src)[i] = (u8)i;
|
||||||
|
|
||||||
memset(dest, 0, IOP_ADMA_TEST_SIZE);
|
|
||||||
|
|
||||||
/* Start copy, using first DMA channel */
|
/* Start copy, using first DMA channel */
|
||||||
dma_chan = container_of(device->common.channels.next,
|
dma_chan = container_of(device->common.channels.next,
|
||||||
struct dma_chan,
|
struct dma_chan,
|
||||||
|
|
Loading…
Reference in a new issue