diff options
author | sjur.brandeland@stericsson.com <sjur.brandeland@stericsson.com> | 2011-12-06 16:15:42 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-12-07 02:21:47 +0400 |
commit | 005b0b076ff68a10cc7ca8d3ba32def3ae95ad96 (patch) | |
tree | 18ffa34d37e86c0742d6cd0a38622ee507e31557 | |
parent | 1e226773c7e79051aa8a48258fe6ae61d20332bf (diff) | |
download | linux-005b0b076ff68a10cc7ca8d3ba32def3ae95ad96.tar.xz |
caif: Bad assert triggering false positive.
Fix bad assert on fragment size triggering false positive.
Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/caif/cfrfml.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/caif/cfrfml.c b/net/caif/cfrfml.c index 81660f809713..6dc75d4f8d94 100644 --- a/net/caif/cfrfml.c +++ b/net/caif/cfrfml.c @@ -190,7 +190,7 @@ out: static int cfrfml_transmit_segment(struct cfrfml *rfml, struct cfpkt *pkt) { - caif_assert(cfpkt_getlen(pkt) < rfml->fragment_size); + caif_assert(cfpkt_getlen(pkt) < rfml->fragment_size + RFM_HEAD_SIZE); /* Add info for MUX-layer to route the packet out. */ cfpkt_info(pkt)->channel_id = rfml->serv.layer.id; |