LLC: Don't feed length=0 frames to SNDCP / GMM
This commit is contained in:
parent
6a19dd0d31
commit
78fa99103d
|
@ -679,7 +679,7 @@ int gprs_llc_rcvmsg(struct msgb *msg, struct tlv_parsed *tv)
|
|||
return rc;
|
||||
|
||||
/* llhp.data is only set when we need to send LL_[UNIT]DATA_IND up */
|
||||
if (llhp.data) {
|
||||
if (llhp.data && llhp.data_len) {
|
||||
msgb_gmmh(msg) = llhp.data;
|
||||
switch (llhp.sapi) {
|
||||
case GPRS_SAPI_GMM:
|
||||
|
|
Loading…
Reference in New Issue