network: check result of if_nametoindex().
When we want to get index of a ifname which does not
exist, we should return a -EINVAL in this case.
Signed-off-by:
Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Acked-by:
Serge E. Hallyn <serge.hallyn@ubuntu.com>
Showing
Please
register
or
sign in
to comment