Re: [PATCH -next] PCI: endpoint: use kmemdup_nul() in pci_epf_create()

2020-05-08 Thread Bjorn Helgaas
On Fri, May 08, 2020 at 08:10:29PM +0800, Chen Zhou wrote: > It is more efficient to use kmemdup_nul() if the size is known exactly. > > The doc in kernel: > "Note: Use kmemdup_nul() instead if the size is known exactly." If you want to do this, I want to do at least the entire drivers/pci direct

[PATCH -next] PCI: endpoint: use kmemdup_nul() in pci_epf_create()

2020-05-08 Thread Chen Zhou
It is more efficient to use kmemdup_nul() if the size is known exactly. The doc in kernel: "Note: Use kmemdup_nul() instead if the size is known exactly." Signed-off-by: Chen Zhou --- drivers/pci/endpoint/pci-epf-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers