linux/drivers/net/ethernet/amd/xgbe
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
..
Makefile amd-xgbe: Add I2C support for sideband communication 2016-11-13 00:56:26 -05:00
xgbe-common.h amd-xgbe: Add support for a KR redriver 2016-11-13 00:56:26 -05:00
xgbe-dcb.c amd-xgbe: Do traffic class setup when called through dcbnl 2016-02-17 15:22:20 -05:00
xgbe-debugfs.c amd-xgbe: Fix possible uninitialized variable 2016-11-16 13:57:44 -05:00
xgbe-desc.c amd-xgbe: Fix DMA API debug warning 2015-07-08 15:57:14 -07:00
xgbe-dev.c amd-xgbe: Add support for MDIO attached PHYs 2016-11-13 00:56:26 -05:00
xgbe-drv.c amd-xgbe: Add support for MDIO attached PHYs 2016-11-13 00:56:26 -05:00
xgbe-ethtool.c net: xgbe: use new api ethtool_{get|set}_link_ksettings 2016-11-09 13:25:13 -05:00
xgbe-i2c.c amd-xgbe: Add I2C support for sideband communication 2016-11-13 00:56:26 -05:00
xgbe-main.c amd-xgbe: Add support for MDIO attached PHYs 2016-11-13 00:56:26 -05:00
xgbe-mdio.c amd-xgbe: Fix mask appliciation for Clause 37 register 2016-11-15 22:12:57 -05:00
xgbe-pci.c amd-xgbe: Add I2C support for sideband communication 2016-11-13 00:56:26 -05:00
xgbe-phy-v1.c amd-xgbe: Add support for a KR redriver 2016-11-13 00:56:26 -05:00
xgbe-phy-v2.c amd-xgbe: Fix up some coccinelle identified warnings 2016-11-15 22:12:57 -05:00
xgbe-platform.c amd-xgbe: Add support for new DMA interrupt mode 2016-11-13 00:56:26 -05:00
xgbe-ptp.c ptp: xgbe: convert to the 64 bit get/set time methods. 2015-03-31 12:01:16 -04:00
xgbe.h amd-xgbe: Add support for a KR redriver 2016-11-13 00:56:26 -05:00