summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInaky Perez-Gonzalez <inaky@linux.intel.com>2009-01-16 15:56:27 -0800
committerInaky Perez-Gonzalez <inaky@linux.intel.com>2009-01-16 15:56:27 -0800
commitd9269b0d98a62fc9ebfdf498888996b0a3c88426 (patch)
tree3eaf4297e3f024a0e12ff7b166113acf9a23fc9a
parent549b31aeeb81f0aeae01119594a612a42cee1834 (diff)
libwimaxll/open: if the device does not exist, set result to exit with error
By mistake we were not returning error if the device wasn't being found. Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
-rw-r--r--lib/op-open.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/op-open.c b/lib/op-open.c
index 61ff200..3950427 100644
--- a/lib/op-open.c
+++ b/lib/op-open.c
@@ -283,6 +283,7 @@ int wimaxll_gnl_resolve(struct wimaxll_handle *wmx)
wmx->ifidx = if_nametoindex(wmx->name);
if (wmx->ifidx == 0) {
wimaxll_msg(wmx, "E: device %s does not exist\n", wmx->name);
+ result = -ENODEV;
goto error_no_dev;
}
result = genl_ctrl_resolve(wmx->nlh_tx, "WiMAX");