git.codelabs.ch
/
muen
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'dmaengine-4.18-rc1' of git://git.infradead.org/users/vkoul/slave-dma
[muen/linux.git]
/
drivers
/
dma
/
ti
/
omap-dma.c
diff --git
a/drivers/dma/ti/omap-dma.c
b/drivers/dma/ti/omap-dma.c
index b73fb51fbc81b5df080925c8e9853e935afe8288..9b5ca8691f27dcf6561fbd98051b697ab2da6011 100644
(file)
--- a/
drivers/dma/ti/omap-dma.c
+++ b/
drivers/dma/ti/omap-dma.c
@@
-917,7
+917,7
@@
static struct dma_async_tx_descriptor *omap_dma_prep_slave_sg(
}
/* Now allocate and setup the descriptor. */
}
/* Now allocate and setup the descriptor. */
- d = kzalloc(s
izeof(*d) + sglen * sizeof(d->sg[0]
), GFP_ATOMIC);
+ d = kzalloc(s
truct_size(d, sg, sglen
), GFP_ATOMIC);
if (!d)
return NULL;
if (!d)
return NULL;