summaryrefslogtreecommitdiffstats
path: root/net/caif
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-07-22 01:11:31 +0000
committerDavid S. Miller <davem@davemloft.net>2010-07-22 14:14:47 -0700
commitb77026b391f4f43ca148cf6c55a93f7487ff6ed8 (patch)
treefe560f17ab4b713d7da3c56d1a4d4a68d7c4ee41 /net/caif
parent03dc2f4c525afb9488edb687c2e1f7057d59b40e (diff)
downloadlinux-b77026b391f4f43ca148cf6c55a93f7487ff6ed8.tar.bz2
caif: precedence bug
Negate has precedence over comparison so the original assert only checked that "rfml->fragment_size" was larger than 1 or 0. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/caif')
-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 4b04d25b6a3f..eb1602022ac0 100644
--- a/net/caif/cfrfml.c
+++ b/net/caif/cfrfml.c
@@ -193,7 +193,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);
/* Add info for MUX-layer to route the packet out. */
cfpkt_info(pkt)->channel_id = rfml->serv.layer.id;