9a764c1e59
The response for a SNMP request can consist of multiple parts, which
the cmd callback stages into a kernel buffer until all parts have been
received. If the callback detects that the staging buffer provides
insufficient space, it bails out with error.
This processing is buggy for the first part of the response - while it
initially checks for a length of 'data_len', it later copies an
additional amount of 'offsetof(struct qeth_snmp_cmd, data)' bytes.
Fix the calculation of 'data_len' for the first part of the response.
This also nicely cleans up the memcpy code.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
ctcm_dbug.c | ||
ctcm_dbug.h | ||
ctcm_fsms.c | ||
ctcm_fsms.h | ||
ctcm_main.c | ||
ctcm_main.h | ||
ctcm_mpc.c | ||
ctcm_mpc.h | ||
ctcm_sysfs.c | ||
fsm.c | ||
fsm.h | ||
ism.h | ||
ism_drv.c | ||
lcs.c | ||
lcs.h | ||
netiucv.c | ||
qeth_core.h | ||
qeth_core_main.c | ||
qeth_core_mpc.c | ||
qeth_core_mpc.h | ||
qeth_core_sys.c | ||
qeth_l2.h | ||
qeth_l2_main.c | ||
qeth_l2_sys.c | ||
qeth_l3.h | ||
qeth_l3_main.c | ||
qeth_l3_sys.c | ||
smsgiucv.c | ||
smsgiucv.h | ||
smsgiucv_app.c |