mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
net: wireless: bcmdhd: Fix private command output
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
This commit is contained in:
parent
410ef5f9f0
commit
487ffb0528
|
|
@ -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__));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user