diff options
author | Dan Carpenter <error27@gmail.com> | 2010-07-22 03:11:31 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-22 23:14:47 +0200 |
commit | b77026b391f4f43ca148cf6c55a93f7487ff6ed8 (patch) | |
tree | fe560f17ab4b713d7da3c56d1a4d4a68d7c4ee41 /net/caif | |
parent | bonding: don't lock when copying/clearing VLAN list on slave (diff) | |
download | linux-b77026b391f4f43ca148cf6c55a93f7487ff6ed8.tar.xz linux-b77026b391f4f43ca148cf6c55a93f7487ff6ed8.zip |
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.c | 2 |
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; |