2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-04 03:33:58 +08:00
linux-next/drivers/net/ethernet/amd
Lendacky, Thomas 5e4cbaa7fb amd-xgbe: Fix possible uninitialized variable
The debugfs support in the driver uses a common routine to write the
debugfs values. In this routine, if the input file position is non-zero
then the write routine will not return an error and an output parameter
will not have been set. Because an error isn't returned an uninitialized
value will be written into a register.

Fix the common write routine to return an error if the input file position
is non-zero, which will propagate back to the caller.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-11-16 13:57:44 -05:00
..
xgbe amd-xgbe: Fix possible uninitialized variable 2016-11-16 13:57:44 -05:00
7990.c ethernet: amd: use IS_ENABLED() instead of checking for built-in or module 2016-09-12 20:27:58 -07:00
7990.h net/7990: Make lance_private.name const 2013-12-29 00:46:38 -05:00
a2065.c net: deprecate eth_change_mtu, remove usage 2016-10-13 09:36:57 -04:00
a2065.h
am79c961a.c net: deprecate eth_change_mtu, remove usage 2016-10-13 09:36:57 -04:00
am79c961a.h drivers/net: fix up stale paths from driver reorg 2012-01-30 12:54:40 -05:00
amd8111e.c net: amd8111e: use new api ethtool_{get|set}_link_ksettings 2016-11-09 13:25:13 -05:00
amd8111e.h ethernet: codespell comment spelling fixes 2015-03-08 22:54:22 -04:00
ariadne.c net: deprecate eth_change_mtu, remove usage 2016-10-13 09:36:57 -04:00
ariadne.h
atarilance.c net: deprecate eth_change_mtu, remove usage 2016-10-13 09:36:57 -04:00
au1000_eth.c net: deprecate eth_change_mtu, remove usage 2016-10-13 09:36:57 -04:00
au1000_eth.h net: ethernet: amd: au1000_eth: use phydev from struct net_device 2016-07-15 16:41:35 -07:00
declance.c net: deprecate eth_change_mtu, remove usage 2016-10-13 09:36:57 -04:00
hplance.c net: deprecate eth_change_mtu, remove usage 2016-10-13 09:36:57 -04:00
hplance.h
Kconfig amd-xgbe: Add support for SFP+ modules 2016-11-13 00:56:26 -05:00
lance.c net: deprecate eth_change_mtu, remove usage 2016-10-13 09:36:57 -04:00
Makefile amd-xgbe: Configuration and build support 2014-06-05 15:26:51 -07:00
mvme147.c net: deprecate eth_change_mtu, remove usage 2016-10-13 09:36:57 -04:00
ni65.c net: deprecate eth_change_mtu, remove usage 2016-10-13 09:36:57 -04:00
ni65.h
nmclan_cs.c net: deprecate eth_change_mtu, remove usage 2016-10-13 09:36:57 -04:00
pcnet32.c net: amd: pcnet32: use new api ethtool_{get|set}_link_ksettings 2016-11-09 13:25:13 -05:00
sun3lance.c net: deprecate eth_change_mtu, remove usage 2016-10-13 09:36:57 -04:00
sunlance.c net: deprecate eth_change_mtu, remove usage 2016-10-13 09:36:57 -04:00