projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9835fd8
)
wimax: allow user space to send messages once the device is registered
author
Inaky Perez-Gonzalez
<inaky@linux.intel.com>
Wed, 30 Sep 2009 23:33:26 +0000
(16:33 -0700)
committer
Inaky Perez-Gonzalez
<inaky@linux.intel.com>
Mon, 19 Oct 2009 06:56:13 +0000
(15:56 +0900)
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 <inaky@linux.intel.com>
net/wimax/op-msg.c
patch
|
blob
|
blame
|
history
diff --git
a/net/wimax/op-msg.c
b/net/wimax/op-msg.c
index d631a17186bcd06c9aa7ae19c0af7653badc6b41..d3bfb6ef13aecae64fe6e0de39d7df292408544b 100644
(file)
--- a/
net/wimax/op-msg.c
+++ b/
net/wimax/op-msg.c
@@
-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;