* [PATCH 02/31] arch/ia64/tioce: use kmemdup rather than duplicating its implementation [not found] <1438934377-4922-1-git-send-email-a.hajda@samsung.com> @ 2015-08-07 7:59 ` Andrzej Hajda 2015-09-16 9:53 ` Andrzej Hajda 0 siblings, 1 reply; 2+ messages in thread From: Andrzej Hajda @ 2015-08-07 7:59 UTC (permalink / raw) To: Tony Luck, Fenghua Yu Cc: Andrzej Hajda, Bartlomiej Zolnierkiewicz, Marek Szyprowski, linux-kernel, linux-ia64 The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> --- arch/ia64/sn/pci/tioce_provider.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/ia64/sn/pci/tioce_provider.c b/arch/ia64/sn/pci/tioce_provider.c index 46d3df4..2f13276 100644 --- a/arch/ia64/sn/pci/tioce_provider.c +++ b/arch/ia64/sn/pci/tioce_provider.c @@ -1000,11 +1000,11 @@ tioce_bus_fixup(struct pcibus_bussoft *prom_bussoft, struct pci_controller *cont * Allocate kernel bus soft and copy from prom. */ - tioce_common = kzalloc(sizeof(struct tioce_common), GFP_KERNEL); + tioce_common = kmemdup(prom_bussoft, sizeof(struct tioce_common), + GFP_KERNEL); if (!tioce_common) return NULL; - memcpy(tioce_common, prom_bussoft, sizeof(struct tioce_common)); tioce_common->ce_pcibus.bs_base = (unsigned long) ioremap(REGION_OFFSET(tioce_common->ce_pcibus.bs_base), sizeof(struct tioce_common)); -- 1.9.1 ^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 02/31] arch/ia64/tioce: use kmemdup rather than duplicating its implementation 2015-08-07 7:59 ` [PATCH 02/31] arch/ia64/tioce: use kmemdup rather than duplicating its implementation Andrzej Hajda @ 2015-09-16 9:53 ` Andrzej Hajda 0 siblings, 0 replies; 2+ messages in thread From: Andrzej Hajda @ 2015-09-16 9:53 UTC (permalink / raw) To: Tony Luck, Fenghua Yu Cc: Bartlomiej Zolnierkiewicz, Marek Szyprowski, linux-kernel, linux-ia64 Ping. Regards Andrzej On 08/07/2015 09:59 AM, Andrzej Hajda wrote: > The patch was generated using fixed coccinelle semantic patch > scripts/coccinelle/api/memdup.cocci [1]. > > [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 > > Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> > --- > arch/ia64/sn/pci/tioce_provider.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/ia64/sn/pci/tioce_provider.c b/arch/ia64/sn/pci/tioce_provider.c > index 46d3df4..2f13276 100644 > --- a/arch/ia64/sn/pci/tioce_provider.c > +++ b/arch/ia64/sn/pci/tioce_provider.c > @@ -1000,11 +1000,11 @@ tioce_bus_fixup(struct pcibus_bussoft *prom_bussoft, struct pci_controller *cont > * Allocate kernel bus soft and copy from prom. > */ > > - tioce_common = kzalloc(sizeof(struct tioce_common), GFP_KERNEL); > + tioce_common = kmemdup(prom_bussoft, sizeof(struct tioce_common), > + GFP_KERNEL); > if (!tioce_common) > return NULL; > > - memcpy(tioce_common, prom_bussoft, sizeof(struct tioce_common)); > tioce_common->ce_pcibus.bs_base = (unsigned long) > ioremap(REGION_OFFSET(tioce_common->ce_pcibus.bs_base), > sizeof(struct tioce_common)); ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-09-16 9:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1438934377-4922-1-git-send-email-a.hajda@samsung.com>
2015-08-07 7:59 ` [PATCH 02/31] arch/ia64/tioce: use kmemdup rather than duplicating its implementation Andrzej Hajda
2015-09-16 9:53 ` Andrzej Hajda
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox