]> git.baikalelectronics.ru Git - kernel.git/commit
staging: fsl-dpaa2/ethsw: Fix uninitialized variables
authorIoana Radulescu <ruxandra.radulescu@nxp.com>
Thu, 30 Aug 2018 13:17:08 +0000 (16:17 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2018 08:38:17 +0000 (10:38 +0200)
commit48a08cb73ba2ce4656dbd9d17277be93ca1ce5bb
tree579ae2eda6031b7a69ae88b6cc6b80e6b584f14d
parenta46c54b391cb7d3e1787c1e0ed139d9a0c035325
staging: fsl-dpaa2/ethsw: Fix uninitialized variables

Functions port_vlans_add() and port_vlans_del() could,
in theory, return an uninitialized variable. Fix this
by initializing the variable in question at declaration.

Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-dpaa2/ethsw/ethsw.c