Skip to content

Commit

Permalink
wimax: allow user space to send messages once the device is registered
Browse files Browse the repository at this point in the history
It makes sense that the messaging pipe to the device can be used
before the device is fully ready, as long as it is registered with the
stack. Some debugging tools need it.

Signed-off-by: Inaky Perez-Gonzalez <[email protected]>
  • Loading branch information
Inaky Perez-Gonzalez committed Oct 19, 2009
1 parent 9835fd8 commit de9315f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/wimax/op-msg.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,8 @@ int wimax_gnl_doit_msg_from_user(struct sk_buff *skb, struct genl_info *info)
}
mutex_lock(&wimax_dev->mutex);
result = wimax_dev_is_ready(wimax_dev);
if (result == -ENOMEDIUM)
result = 0;
if (result < 0)
goto error_not_ready;
result = -ENOSYS;
Expand Down

0 comments on commit de9315f

Please sign in to comment.