Re: [dpdk-dev] [PATCH 2/2] net/sfc: use more robust string comparison

2020-11-09 Thread Andrew Rybchenko
On 11/9/20 2:46 PM, Ivan Malov wrote: > When it comes to comparing HW switch ID strings, > use strncmp to avoid reading past the buffer. > > Fixes: e86b48aa46d4 ("net/sfc: add HW switch ID helpers") > > Signed-off-by: Ivan Malov Acked-by: Andrew Rybchenko

[dpdk-dev] [PATCH 2/2] net/sfc: use more robust string comparison

2020-11-09 Thread Ivan Malov
When it comes to comparing HW switch ID strings, use strncmp to avoid reading past the buffer. Fixes: e86b48aa46d4 ("net/sfc: add HW switch ID helpers") Signed-off-by: Ivan Malov --- drivers/net/sfc/sfc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/sfc/sfc.