Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 276201
b: refs/heads/master
c: f23aa62
h: refs/heads/master
i:
  276199: 1b1d628
v: v3
  • Loading branch information
Dan Carpenter authored and David S. Miller committed Nov 21, 2011
1 parent 2ae21be commit a24c8ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 525c6465d449cdec04b3c91733e46027a4d08422
refs/heads/master: f23aa62545c18728eb2b9434aa258be27e07dd49
11 changes: 6 additions & 5 deletions trunk/net/caif/cffrml.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,20 +136,21 @@ static int cffrml_receive(struct cflayer *layr, struct cfpkt *pkt)

static int cffrml_transmit(struct cflayer *layr, struct cfpkt *pkt)
{
int tmp;
u16 chks;
u16 len;
__le16 data;

struct cffrml *this = container_obj(layr);
if (this->dofcs) {
chks = cfpkt_iterate(pkt, cffrml_checksum, 0xffff);
tmp = cpu_to_le16(chks);
cfpkt_add_trail(pkt, &tmp, 2);
data = cpu_to_le16(chks);
cfpkt_add_trail(pkt, &data, 2);
} else {
cfpkt_pad_trail(pkt, 2);
}
len = cfpkt_getlen(pkt);
tmp = cpu_to_le16(len);
cfpkt_add_head(pkt, &tmp, 2);
data = cpu_to_le16(len);
cfpkt_add_head(pkt, &data, 2);
cfpkt_info(pkt)->hdr_len += 2;
if (cfpkt_erroneous(pkt)) {
pr_err("Packet is erroneous!\n");
Expand Down

0 comments on commit a24c8ff

Please sign in to comment.