diff options
author | sjur.brandeland@stericsson.com <sjur.brandeland@stericsson.com> | 2011-12-06 13:15:42 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-12-06 23:21:47 +0100 |
commit | 005b0b076ff68a10cc7ca8d3ba32def3ae95ad96 (patch) | |
tree | 18ffa34d37e86c0742d6cd0a38622ee507e31557 /net/caif | |
parent | caif-hsi: Remove wake line modification when flushing FIFO (diff) | |
download | linux-005b0b076ff68a10cc7ca8d3ba32def3ae95ad96.tar.xz linux-005b0b076ff68a10cc7ca8d3ba32def3ae95ad96.zip |
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>
Diffstat (limited to 'net/caif')
-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; |