[v2] ioctl: only memset non-NULL link settings

2020-08-27 Thread Hans-Christian Noren Egtvedt
nter to zero we must first check it is valid, as NULL return is perfectly fine when running on old kernels. Fixes: bef780467fa7 ("ioctl: do not pass transceiver value back to kernel") Signed-off-by: Hans-Christian Noren Egtvedt --- ethtool.c | 5 +++-- 1 file changed, 3 insertions(+), 2 d

[PATCH] ioctl: only memset non-NULL link settings

2020-08-23 Thread Hans-Christian Noren Egtvedt
to zero we must first check it is valid, as NULL return is perfectly fine when running on old kernels. Signed-off-by: Hans-Christian Noren Egtvedt --- ethtool.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ethtool.c b/ethtool.c index c4ad186..8267d6b 100644 --- a/

Re: [net-next PATCH RFC 05/26] arch/avr32: Add option to skip sync on DMA map

2016-10-24 Thread Hans-Christian Noren Egtvedt
Cc: Haavard Skinnemoen > Cc: Hans-Christian Egtvedt > Signed-off-by: Alexander Duyck Acked-by: Hans-Christian Noren Egtvedt > --- > arch/avr32/mm/dma-coherent.c |7 ++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/arch/avr32/mm/dma-coherent.c b/arc