Re: [PATCH net] sit: Correctly return -ENOMEM from SIOCGETPRL ioctl.

2016-07-27 Thread Cong Wang
On Wed, Jul 27, 2016 at 6:57 AM, Phil Turnbull wrote: > -ENOMEM is never returned because the 'out' path unconditionally sets > 'ret' to zero. Remove the 'out' path and return directly when the > allocation fails. > > Fixes: 300aaeeaab5f ("[IPV6] SIT: Add SIOCGETPRL

[PATCH net] sit: Correctly return -ENOMEM from SIOCGETPRL ioctl.

2016-07-27 Thread Phil Turnbull
-ENOMEM is never returned because the 'out' path unconditionally sets 'ret' to zero. Remove the 'out' path and return directly when the allocation fails. Fixes: 300aaeeaab5f ("[IPV6] SIT: Add SIOCGETPRL ioctl to get/dump PRL.") Signed-off-by: Phil Turnbull ---