[PATCH] s390: minor qeth network driver fixes
[patch 2/3] s390: minor qeth network driver fixes From: Frank Pavlic <pavlic@de.ibm.com> - use netif_carrier_on/off calls to tell network stack link carrier state - fix possible kfree on NULL - PDU_LEN2 is at offset 0x29 otherwise OSN chpid won't initialize Signed-off-by: Frank Pavlic <pavlic@de.ibm.com> diffstat: qeth_eddp.c | 3 ++- qeth_main.c | 17 +++++++---------- qeth_mpc.h | 2 +- 3 files changed, 10 insertions(+), 12 deletions(-) Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
This commit is contained in:
committed by
Jeff Garzik
parent
6c6b3e7c4f
commit
4965e97fd3
@@ -21,7 +21,7 @@ extern const char *VERSION_QETH_MPC_C;
|
||||
#define IPA_PDU_HEADER_SIZE 0x40
|
||||
#define QETH_IPA_PDU_LEN_TOTAL(buffer) (buffer+0x0e)
|
||||
#define QETH_IPA_PDU_LEN_PDU1(buffer) (buffer+0x26)
|
||||
#define QETH_IPA_PDU_LEN_PDU2(buffer) (buffer+0x2a)
|
||||
#define QETH_IPA_PDU_LEN_PDU2(buffer) (buffer+0x29)
|
||||
#define QETH_IPA_PDU_LEN_PDU3(buffer) (buffer+0x3a)
|
||||
|
||||
extern unsigned char IPA_PDU_HEADER[];
|
||||
|
Reference in New Issue
Block a user