projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
410ef5f
)
net: wireless: bcmdhd: Fix private command output
author
Dmitry Shmidt
<dimitrysh@google.com>
Thu, 7 Jul 2011 21:57:23 +0000
(14:57 -0700)
committer
Dmitry Shmidt
<dimitrysh@google.com>
Thu, 7 Jul 2011 22:00:19 +0000
(15:00 -0700)
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
drivers/net/wireless/bcmdhd/wl_android.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/bcmdhd/wl_android.c
b/drivers/net/wireless/bcmdhd/wl_android.c
index 3d6047de29733b7dc3dc0d7c3fd1fcf06b6696ad..2d3ff7f14cd4c69a025f422052fda6c4c8563d3d 100644
(file)
--- a/
drivers/net/wireless/bcmdhd/wl_android.c
+++ b/
drivers/net/wireless/bcmdhd/wl_android.c
@@
-306,10
+306,11
@@
int wl_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd)
} else {
DHD_ERROR(("Unknown PRIVATE command %s - ignored\n", command));
snprintf(command, 3, "OK");
- bytes_written = strlen("OK")
+ 1
;
+ bytes_written = strlen("OK");
}
if (bytes_written > 0) {
+ bytes_written++;
priv_cmd->used_len = bytes_written;
if (copy_to_user(priv_cmd->buf, command, bytes_written)) {
DHD_ERROR(("%s: failed to copy data to user buffer\n", __FUNCTION__));