linux/drivers/net/ethernet/freescale/fman
Florinel Iordache 99f47abd9f fsl/fman: use 32-bit unsigned integer
Potentially overflowing expression (ts_freq << 16 and intgr << 16)
declared as type u32 (32-bit unsigned) is evaluated using 32-bit
arithmetic and then used in a context that expects an expression of
type u64 (64-bit unsigned) which ultimately is used as 16-bit
unsigned by typecasting to u16. Fixed by using an unsigned 32-bit
integer since the value is truncated anyway in the end.

Fixes: 414fd46e77 ("fsl/fman: Add FMan support")
Signed-off-by: Florinel Iordache <florinel.iordache@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-08-03 16:20:14 -07:00
..
fman_dtsec.c fsl/fman: tolerate missing MAC address in device tree 2020-03-08 22:02:54 -07:00
fman_dtsec.h fsl/fman: add set_tstamp interface 2018-06-26 22:15:14 +09:00
fman_keygen.c fsl/fman: include IPSEC SPI in the Keygen extraction 2019-05-28 11:21:03 -07:00
fman_keygen.h
fman_mac.h
fman_memac.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-03-25 18:58:11 -07:00
fman_memac.h fsl/fman: add set_tstamp interface 2018-06-26 22:15:14 +09:00
fman_muram.c
fman_muram.h
fman_port.c fsl/fman: remove unused struct member 2019-10-24 15:21:58 -07:00
fman_port.h fsl/fman: add API to get the device behind a fman port 2019-10-24 15:21:58 -07:00
fman_sp.c
fman_sp.h
fman_tgec.c fsl/fman: tolerate missing MAC address in device tree 2020-03-08 22:02:54 -07:00
fman_tgec.h fsl/fman: add set_tstamp interface 2018-06-26 22:15:14 +09:00
fman.c fsl/fman: use 32-bit unsigned integer 2020-08-03 16:20:14 -07:00
fman.h fsl/fman: detect FMan erratum A050385 2020-03-06 21:55:32 -08:00
Kconfig fsl/fman: detect FMan erratum A050385 2020-03-06 21:55:32 -08:00
mac.c fsl/fman: tolerate missing MAC address in device tree 2020-03-08 22:02:54 -07:00
mac.h fsl/fman: add set_tstamp interface 2018-06-26 22:15:14 +09:00
Makefile