Re: [dpdk-dev] [PATCH] bus/pci: correct the earlier strlcpy conversion

2018-05-15 Thread Thomas Monjalon
15/05/2018 12:51, Andrew Rybchenko: > On 05/15/2018 10:31 AM, Andy Green wrote: > > Fixes: fe5f777b5383 ("bus/pci: replace strncpy by strlcpy") > > Signed-off-by: Andy Green > > Reviewed-by: Andrew Rybchenko > > Suggest to reword it as: > > bus/pci: fix invalid size of driver name buffer > >

Re: [dpdk-dev] [PATCH] bus/pci: correct the earlier strlcpy conversion

2018-05-15 Thread Andrew Rybchenko
On 05/15/2018 10:31 AM, Andy Green wrote: Fixes: fe5f777b5383 ("bus/pci: replace strncpy by strlcpy") Signed-off-by: Andy Green Reviewed-by: Andrew Rybchenko Suggest to reword it as: bus/pci: fix invalid size of driver name buffer Variable dri_name is a pointer and it is incorrect to use i

[dpdk-dev] [PATCH] bus/pci: correct the earlier strlcpy conversion

2018-05-15 Thread Andy Green
Fixes: fe5f777b5383 ("bus/pci: replace strncpy by strlcpy") Signed-off-by: Andy Green --- drivers/bus/pci/linux/pci.c |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/bus/pci/linux/pci.c b/drivers/bus/pci/linux/pci.c index a73ee49c2..004600f1c 100644 --- a/dri