linux_dsm_epyc7002/drivers/net/ethernet/amd/xgbe
Lendacky, Thomas f3f128d40c amd-xgbe: Fix debugfs compatibility change with kstrtouint
The initial change from sscanf to kstrtouint broke backward
compatbility by using a base of "0" in the kstrtouint call.
This allowed for entering decimal, hexadecimal or octal as
input where previously the sscanf always interpreted the input
as hexadecimal.  Additionally, -EIO was returned on error prior
to this change and now it is whatever the error value that is
returned by kstrtouint.

Change the base value of the kstrtouint from 0 to 16 and return
-EIO on error.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Reported-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-07-07 21:38:06 -07:00
..
Makefile amd-xgbe: Initial AMD 10GbE platform driver 2014-06-05 15:26:51 -07:00
xgbe-common.h amd-xgbe: Change destination address filtering support 2014-06-26 17:14:04 -07:00
xgbe-debugfs.c amd-xgbe: Fix debugfs compatibility change with kstrtouint 2014-07-07 21:38:06 -07:00
xgbe-desc.c amd-xgbe: Make defines in xgbe.h unique 2014-06-26 17:14:03 -07:00
xgbe-dev.c amd-xgbe: Change destination address filtering support 2014-06-26 17:14:04 -07:00
xgbe-drv.c amd-xgbe: Change destination address filtering support 2014-06-26 17:14:04 -07:00
xgbe-ethtool.c amd-xgbe: Initial AMD 10GbE platform driver 2014-06-05 15:26:51 -07:00
xgbe-main.c amd-xgbe: Change destination address filtering support 2014-06-26 17:14:04 -07:00
xgbe-mdio.c amd-xgbe: unwind on error in xgbe_mdio_register() 2014-06-11 15:39:19 -07:00
xgbe.h amd-xgbe: Change destination address filtering support 2014-06-26 17:14:04 -07:00