aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/net/ctcm_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390/net/ctcm_main.c')
-rw-r--r--drivers/s390/net/ctcm_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/s390/net/ctcm_main.c b/drivers/s390/net/ctcm_main.c
index 59ce7fb7308..a7a25383db7 100644
--- a/drivers/s390/net/ctcm_main.c
+++ b/drivers/s390/net/ctcm_main.c
@@ -105,7 +105,8 @@ void ctcm_unpack_skb(struct channel *ch, struct sk_buff *pskb)
105 return; 105 return;
106 } 106 }
107 pskb->protocol = ntohs(header->type); 107 pskb->protocol = ntohs(header->type);
108 if (header->length <= LL_HEADER_LENGTH) { 108 if ((header->length <= LL_HEADER_LENGTH) ||
109 (len <= LL_HEADER_LENGTH)) {
109 if (!(ch->logflags & LOG_FLAG_ILLEGALSIZE)) { 110 if (!(ch->logflags & LOG_FLAG_ILLEGALSIZE)) {
110 CTCM_DBF_TEXT_(ERROR, CTC_DBF_ERROR, 111 CTCM_DBF_TEXT_(ERROR, CTC_DBF_ERROR,
111 "%s(%s): Illegal packet size %d(%d,%d)" 112 "%s(%s): Illegal packet size %d(%d,%d)"