]> git.baikalelectronics.ru Git - kernel.git/commit
lan743x: fix use of uninitialized variable
authorSven Van Asbroeck <thesven73@gmail.com>
Thu, 12 Nov 2020 15:25:13 +0000 (10:25 -0500)
committerJakub Kicinski <kuba@kernel.org>
Thu, 12 Nov 2020 18:03:16 +0000 (10:03 -0800)
commitc8cad9d913db38ae84d993d752ff023914a06416
tree5cee394dc25e3d196589f88c6084a72ced839994
parent0e033c63555127407d2fbf282149f4ff49381a46
lan743x: fix use of uninitialized variable

When no devicetree is present, the driver will use an
uninitialized variable.

Fix by initializing this variable.

Fixes: 39ef6d21dcfa ("lan743x: correctly handle chips with internal PHY")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Sven Van Asbroeck <thesven73@gmail.com>
Link: https://lore.kernel.org/r/20201112152513.1941-1-TheSven73@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/microchip/lan743x_main.c