summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsjur.brandeland@stericsson.com <sjur.brandeland@stericsson.com>2011-12-06 12:15:42 +0000
committerDavid S. Miller <davem@davemloft.net>2011-12-06 17:21:47 -0500
commit005b0b076ff68a10cc7ca8d3ba32def3ae95ad96 (patch)
tree18ffa34d37e86c0742d6cd0a38622ee507e31557
parent1e226773c7e79051aa8a48258fe6ae61d20332bf (diff)
downloadlinux-stable-005b0b076ff68a10cc7ca8d3ba32def3ae95ad96.tar.gz
linux-stable-005b0b076ff68a10cc7ca8d3ba32def3ae95ad96.tar.bz2
linux-stable-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>
-rw-r--r--net/caif/cfrfml.c2
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;