diff options
author | sjur.brandeland@stericsson.com <sjur.brandeland@stericsson.com> | 2011-12-06 07:15:42 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-12-06 17:21:47 -0500 |
commit | 005b0b076ff68a10cc7ca8d3ba32def3ae95ad96 (patch) | |
tree | 18ffa34d37e86c0742d6cd0a38622ee507e31557 /net/caif | |
parent | 1e226773c7e79051aa8a48258fe6ae61d20332bf (diff) |
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: | |||
190 | 190 | ||
191 | static int cfrfml_transmit_segment(struct cfrfml *rfml, struct cfpkt *pkt) | 191 | static int cfrfml_transmit_segment(struct cfrfml *rfml, struct cfpkt *pkt) |
192 | { | 192 | { |
193 | caif_assert(cfpkt_getlen(pkt) < rfml->fragment_size); | 193 | caif_assert(cfpkt_getlen(pkt) < rfml->fragment_size + RFM_HEAD_SIZE); |
194 | 194 | ||
195 | /* Add info for MUX-layer to route the packet out. */ | 195 | /* Add info for MUX-layer to route the packet out. */ |
196 | cfpkt_info(pkt)->channel_id = rfml->serv.layer.id; | 196 | cfpkt_info(pkt)->channel_id = rfml->serv.layer.id; |