diff options
author | Jussi Kivilinna <jussi.kivilinna@mbnet.fi> | 2010-03-04 11:27:02 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-03-10 17:44:24 -0500 |
commit | 80f8c5b434f94926c6489d7350d58aecb53ab70f (patch) | |
tree | beff456b9ec9724b75d122383513faea91eb3e00 /drivers/net/tsi108_eth.h | |
parent | eae44756d60c4e938259358090dba5df675dced0 (diff) |
rndis_wlan: copy only useful data from rndis_command respond
rndis_query_oid() uses full output buffer size to copy response buffer
from rndis_command()/device. This doesn't cause problems as response buffer
is sized based on output buffer but does copy extra unset bytes.
So change rndis_query_oid() so that only meaningful bytes are being copied.
Also in case of malfunctioning device/cable/etc returned data offset from
device might be wrong so bound check memory access correctly, so add
checks for this.
v2: fixed to use new netdev_dbg/warn/etc instead of old devdbg/warn/etc
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/tsi108_eth.h')
0 files changed, 0 insertions, 0 deletions