2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 04:34:11 +08:00
linux-next/include/net/caif
Dan Carpenter 278f7b4fff caif: fix a signedness bug in cfpkt_iterate()
The cfpkt_iterate() function can return -EPROTO on error, but the
function is a u16 so the negative value gets truncated to a positive
unsigned short.  This causes a static checker warning.

The only caller which might care is cffrml_receive(), when it's checking
the frame checksum.  I modified cffrml_receive() so that it never says
-EPROTO is a valid checksum.

Also this isn't ever going to be inlined so I removed the "inline".

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-02-20 17:35:14 -05:00
..
caif_dev.h caif: Remove my bouncing email address. 2013-04-23 13:25:51 -04:00
caif_device.h caif: Remove my bouncing email address. 2013-04-23 13:25:51 -04:00
caif_hsi.h caif_hsi.h: Remove extern from function prototypes 2013-09-23 16:29:41 -04:00
caif_layer.h caif: Remove my bouncing email address. 2013-04-23 13:25:51 -04:00
caif_spi.h caif-spi: Bugfix for dump upon device removal 2011-12-06 13:34:12 -05:00
cfcnfg.h caif: Remove my bouncing email address. 2013-04-23 13:25:51 -04:00
cfctrl.h caif: Remove my bouncing email address. 2013-04-23 13:25:51 -04:00
cffrml.h caif: Remove my bouncing email address. 2013-04-23 13:25:51 -04:00
cfmuxl.h caif: Remove my bouncing email address. 2013-04-23 13:25:51 -04:00
cfpkt.h caif: fix a signedness bug in cfpkt_iterate() 2015-02-20 17:35:14 -05:00
cfserl.h caif: Remove my bouncing email address. 2013-04-23 13:25:51 -04:00
cfsrvl.h caif: Remove my bouncing email address. 2013-04-23 13:25:51 -04:00