]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: dp83867: Use unsigned variables to store unsigned properties
authorTrent Piepho <tpiepho@impinj.com>
Wed, 22 May 2019 18:43:24 +0000 (18:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 May 2019 00:40:18 +0000 (17:40 -0700)
commit30c6201faa9a59b6a4ba8b26c0990899c455c91e
treed96f2cfca3ebeba96ef012bb591906da78c5d25c
parent5becc981d9327b545d472b8d15b0552d51439ccc
net: phy: dp83867: Use unsigned variables to store unsigned properties

The variables used to store u32 DT properties were signed ints.  This
doesn't work properly if the value of the property were to overflow.
Use unsigned variables so this doesn't happen.

Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Trent Piepho <tpiepho@impinj.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/dp83867.c