Re: [PATCH] devinet_ioctl(): Set ret to 0 when breaking out of the switch-case

2018-01-28 Thread Christoph Paasch
On Sun, Jan 28, 2018 at 8:48 PM, Christoph Paasch wrote: > Commit 03aef17bb79b ("devinet_ioctl(): take copyin/copyout to caller") > introduced a regression when using ifconfig. ifconfig doesn't show the > address anymore. The reason is that the above patch changed the flow in > devinet_ioctl(), wh

[PATCH] devinet_ioctl(): Set ret to 0 when breaking out of the switch-case

2018-01-28 Thread Christoph Paasch
Commit 03aef17bb79b ("devinet_ioctl(): take copyin/copyout to caller") introduced a regression when using ifconfig. ifconfig doesn't show the address anymore. The reason is that the above patch changed the flow in devinet_ioctl(), where we break; and end up returning ret. ret however is set to -EAD